From d5a790e25baf0de9b001786ab2a219fb77d8d76d Mon Sep 17 00:00:00 2001 From: MMX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:10:54 +0300 Subject: [PATCH] SubGHz: Hormann HSM static - Fix button decode (#3767) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: hedger Co-authored-by: あく --- lib/subghz/protocols/hormann.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/subghz/protocols/hormann.c b/lib/subghz/protocols/hormann.c index fc490e9d1..70954bb39 100644 --- a/lib/subghz/protocols/hormann.c +++ b/lib/subghz/protocols/hormann.c @@ -285,7 +285,7 @@ void subghz_protocol_decoder_hormann_feed(void* context, bool level, uint32_t du * @param instance Pointer to a SubGhzBlockGeneric* instance */ static void subghz_protocol_hormann_check_remote_controller(SubGhzBlockGeneric* instance) { - instance->btn = (instance->data >> 4) & 0xF; + instance->btn = (instance->data >> 8) & 0xF; } uint8_t subghz_protocol_decoder_hormann_get_hash_data(void* context) {