tune holtek to decode holtek only and not conflict with came 12bit

This commit is contained in:
MX
2025-05-06 04:11:46 +03:00
parent 760079ee2c
commit fb02568fab
+4 -2
View File
@@ -234,8 +234,10 @@ void subghz_protocol_decoder_holtek_th12x_feed(void* context, bool level, uint32
switch(instance->decoder.parser_step) {
case Holtek_HT12XDecoderStepReset:
if((!level) && (DURATION_DIFF(duration, subghz_protocol_holtek_th12x_const.te_short * 36) <
subghz_protocol_holtek_th12x_const.te_delta * 36)) {
if((!level) && (DURATION_DIFF(duration, subghz_protocol_holtek_th12x_const.te_short * 28) <
subghz_protocol_holtek_th12x_const.te_delta * 20)) {
// 18720 us old max value
// 12960 us corrected max value
//Found Preambula
instance->decoder.parser_step = Holtek_HT12XDecoderStepFoundStartBit;
}