Avoid false positives for dickert mahs

This commit is contained in:
MX
2025-08-15 00:40:01 +03:00
parent eb9b84e0c0
commit f2bfed6bbc

View File

@@ -288,8 +288,9 @@ void subghz_protocol_decoder_dickert_mahs_feed(void* context, bool level, uint32
instance->decoder.decode_count_bit = 0; instance->decoder.decode_count_bit = 0;
} }
if((!level) && (duration > 10 * subghz_protocol_dickert_mahs_const.te_short)) { if((!level) && (DURATION_DIFF(duration, subghz_protocol_dickert_mahs_const.te_long * 50) <
//Found header DICKERT_MAHS subghz_protocol_dickert_mahs_const.te_delta * 70)) {
//Found header DICKERT_MAHS 44k us
instance->decoder.parser_step = DickertMAHSDecoderStepInitial; instance->decoder.parser_step = DickertMAHSDecoderStepInitial;
} }
break; break;