diff --git a/lib/subghz/protocols/nice_flor_s.c b/lib/subghz/protocols/nice_flor_s.c index 6448378f6..8c4a22858 100644 --- a/lib/subghz/protocols/nice_flor_s.c +++ b/lib/subghz/protocols/nice_flor_s.c @@ -688,7 +688,7 @@ static void subghz_protocol_nice_flor_s_remote_controller( if(subghz_custom_btn_get_original() == 0) { subghz_custom_btn_set_original(instance->btn); } - subghz_custom_btn_set_max(3); + subghz_custom_btn_set_max(4); } uint8_t subghz_protocol_decoder_nice_flor_s_get_hash_data(void* context) { @@ -774,6 +774,9 @@ static uint8_t subghz_protocol_nice_flor_s_get_btn_code() { case 0x8: btn = 0x1; break; + case 0x3: + btn = 0x1; + break; default: break; @@ -792,6 +795,9 @@ static uint8_t subghz_protocol_nice_flor_s_get_btn_code() { case 0x8: btn = 0x4; break; + case 0x3: + btn = 0x4; + break; default: break; @@ -810,6 +816,30 @@ static uint8_t subghz_protocol_nice_flor_s_get_btn_code() { case 0x8: btn = 0x2; break; + case 0x3: + btn = 0x8; + break; + + default: + break; + } + } else if(custom_btn_id == SUBGHZ_CUSTOM_BTN_RIGHT) { + switch(original_btn_code) { + case 0x1: + btn = 0x3; + break; + case 0x2: + btn = 0x3; + break; + case 0x4: + btn = 0x3; + break; + case 0x8: + btn = 0x3; + break; + case 0x3: + btn = 0x2; + break; default: break;