From 161db6ebc6c8fd907abc1965836f49454323d29e Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Tue, 13 Jan 2026 05:29:30 +0300 Subject: [PATCH] Fix button mapping for faac rc xt --- lib/subghz/protocols/keeloq.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/lib/subghz/protocols/keeloq.c b/lib/subghz/protocols/keeloq.c index 6b03badb9..a13066ed2 100644 --- a/lib/subghz/protocols/keeloq.c +++ b/lib/subghz/protocols/keeloq.c @@ -1366,6 +1366,12 @@ static uint8_t subghz_protocol_keeloq_get_btn_code(uint8_t last_btn_code) { case 0xF: btn = 0x1; break; + case 0x9: + btn = 0x2; + break; + case 0x6: + btn = 0x2; + break; default: btn = 0x1; @@ -1391,6 +1397,12 @@ static uint8_t subghz_protocol_keeloq_get_btn_code(uint8_t last_btn_code) { case 0xF: btn = 0x4; break; + case 0x9: + btn = 0x4; + break; + case 0x6: + btn = 0x4; + break; default: btn = 0x4; @@ -1416,6 +1428,12 @@ static uint8_t subghz_protocol_keeloq_get_btn_code(uint8_t last_btn_code) { case 0xF: btn = 0x8; break; + case 0x9: + btn = 0x6; + break; + case 0x6: + btn = 0x9; + break; default: btn = 0x8; @@ -1441,9 +1459,15 @@ static uint8_t subghz_protocol_keeloq_get_btn_code(uint8_t last_btn_code) { case 0xF: btn = 0x2; break; + case 0x9: + btn = last_btn_code; + break; + case 0x6: + btn = last_btn_code; + break; default: - btn = 0x2; + btn = last_btn_code; break; } }