mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
Protocol data redecoding before write
OFW PR 1723 by nminaylov
This commit is contained in:
@@ -182,6 +182,10 @@ bool protocol_pac_stanley_write_data(ProtocolPACStanley* protocol, void* data) {
|
||||
LFRFIDWriteRequest* request = (LFRFIDWriteRequest*)data;
|
||||
bool result = false;
|
||||
|
||||
// Correct protocol data by redecoding
|
||||
protocol_pac_stanley_encoder_start(protocol);
|
||||
protocol_pac_stanley_decode(protocol);
|
||||
|
||||
protocol_pac_stanley_encoder_start(protocol);
|
||||
|
||||
if(request->write_type == LFRFIDWriteTypeT5577) {
|
||||
|
||||
Reference in New Issue
Block a user