keeloq custom buttons improvements

This commit is contained in:
MX 2024-07-08 09:08:48 +03:00
parent 0390bd3ff9
commit 4b7875376b
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -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);