mirror of
https://github.com/D4C1-Labs/Flipper-ARF.git
synced 2026-03-30 17:55:38 +00:00
Compare commits
1 Commits
dev-cb1daa
...
dev-38f261
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38f261e23b |
@@ -743,14 +743,6 @@ void subghz_protocol_decoder_psa_feed(void* context, bool level, uint32_t durati
|
|||||||
}
|
}
|
||||||
if(end_diff <= 199) {
|
if(end_diff <= 199) {
|
||||||
instance->validation_field = (uint16_t)(instance->decode_data_low & 0xFFFF);
|
instance->validation_field = (uint16_t)(instance->decode_data_low & 0xFFFF);
|
||||||
if((instance->validation_field & 0xf) != 0xa) {
|
|
||||||
instance->decode_data_low = 0;
|
|
||||||
instance->decode_data_high = 0;
|
|
||||||
instance->decode_count_bit = 0;
|
|
||||||
new_state = PSADecoderState0;
|
|
||||||
instance->state = new_state;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
instance->key2_low = instance->decode_data_low;
|
instance->key2_low = instance->decode_data_low;
|
||||||
instance->key2_high = instance->decode_data_high;
|
instance->key2_high = instance->decode_data_high;
|
||||||
instance->mode_serialize = 1;
|
instance->mode_serialize = 1;
|
||||||
@@ -1034,14 +1026,6 @@ void subghz_protocol_decoder_psa_feed(void* context, bool level, uint32_t durati
|
|||||||
}
|
}
|
||||||
|
|
||||||
instance->validation_field = (uint16_t)(instance->decode_data_low & 0xFFFF);
|
instance->validation_field = (uint16_t)(instance->decode_data_low & 0xFFFF);
|
||||||
if((instance->validation_field & 0xf) != 0xa) {
|
|
||||||
instance->decode_data_low = 0;
|
|
||||||
instance->decode_data_high = 0;
|
|
||||||
instance->decode_count_bit = 0;
|
|
||||||
new_state = PSADecoderState0;
|
|
||||||
instance->state = new_state;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
instance->key2_low = instance->decode_data_low;
|
instance->key2_low = instance->decode_data_low;
|
||||||
instance->key2_high = instance->decode_data_high;
|
instance->key2_high = instance->decode_data_high;
|
||||||
instance->mode_serialize = 2;
|
instance->mode_serialize = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user