diff --git a/lib/subghz/protocols/keeloq.c b/lib/subghz/protocols/keeloq.c index fed56cbf6..7a497cc09 100644 --- a/lib/subghz/protocols/keeloq.c +++ b/lib/subghz/protocols/keeloq.c @@ -425,14 +425,15 @@ static bool uint8_t klq_last_custom_btn = 0xA; if((strcmp(instance->manufacture_name, "BFT") == 0) || (strcmp(instance->manufacture_name, "Aprimatic") == 0) || - (strcmp(instance->manufacture_name, "Dea_Mio") == 0)) { + (strcmp(instance->manufacture_name, "Dea_Mio") == 0) || + (strcmp(instance->manufacture_name, "NICE_MHOUSE") == 0)) { klq_last_custom_btn = 0xF; - } - if((strcmp(instance->manufacture_name, "FAAC_RC,XT") == 0)) { + } else if((strcmp(instance->manufacture_name, "FAAC_RC,XT") == 0)) { klq_last_custom_btn = 0xB; - } - if((strcmp(instance->manufacture_name, "Novoferm") == 0)) { + } else if((strcmp(instance->manufacture_name, "Novoferm") == 0)) { klq_last_custom_btn = 0x9; + } else if((strcmp(instance->manufacture_name, "NICE_Smilo") == 0)) { + klq_last_custom_btn = 0xB; } btn = subghz_protocol_keeloq_get_btn_code(klq_last_custom_btn);