From 64e231ae8d5f3f45c61e88aaec0e1917d36c3991 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:47:43 +0300 Subject: [PATCH] fix logic --- lib/subghz/protocols/hay21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/subghz/protocols/hay21.c b/lib/subghz/protocols/hay21.c index c74d9837c..32f9de1de 100644 --- a/lib/subghz/protocols/hay21.c +++ b/lib/subghz/protocols/hay21.c @@ -114,7 +114,7 @@ static uint8_t subghz_protocol_hay21_get_btn_code(void) { default: break; } - } else if(custom_btn_id == SUBGHZ_CUSTOM_BTN_LEFT) { + } else if(custom_btn_id == SUBGHZ_CUSTOM_BTN_DOWN) { switch(original_btn_code) { case 0x5A: btn = 0x88;