mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
nice flor s add button code 0x3
This commit is contained in:
@@ -688,7 +688,7 @@ static void subghz_protocol_nice_flor_s_remote_controller(
|
|||||||
if(subghz_custom_btn_get_original() == 0) {
|
if(subghz_custom_btn_get_original() == 0) {
|
||||||
subghz_custom_btn_set_original(instance->btn);
|
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) {
|
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:
|
case 0x8:
|
||||||
btn = 0x1;
|
btn = 0x1;
|
||||||
break;
|
break;
|
||||||
|
case 0x3:
|
||||||
|
btn = 0x1;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -792,6 +795,9 @@ static uint8_t subghz_protocol_nice_flor_s_get_btn_code() {
|
|||||||
case 0x8:
|
case 0x8:
|
||||||
btn = 0x4;
|
btn = 0x4;
|
||||||
break;
|
break;
|
||||||
|
case 0x3:
|
||||||
|
btn = 0x4;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -810,6 +816,30 @@ static uint8_t subghz_protocol_nice_flor_s_get_btn_code() {
|
|||||||
case 0x8:
|
case 0x8:
|
||||||
btn = 0x2;
|
btn = 0x2;
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user