mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-10-10 08:42:32 +02:00
Avoid false positives for dickert mahs
This commit is contained in:
@@ -288,8 +288,9 @@ void subghz_protocol_decoder_dickert_mahs_feed(void* context, bool level, uint32
|
||||
instance->decoder.decode_count_bit = 0;
|
||||
}
|
||||
|
||||
if((!level) && (duration > 10 * subghz_protocol_dickert_mahs_const.te_short)) {
|
||||
//Found header DICKERT_MAHS
|
||||
if((!level) && (DURATION_DIFF(duration, subghz_protocol_dickert_mahs_const.te_long * 50) <
|
||||
subghz_protocol_dickert_mahs_const.te_delta * 70)) {
|
||||
//Found header DICKERT_MAHS 44k us
|
||||
instance->decoder.parser_step = DickertMAHSDecoderStepInitial;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user