From f388a7ecabb71a1589995647e8974eb0e4b3abe2 Mon Sep 17 00:00:00 2001 From: assasinfil Date: Sat, 11 Feb 2023 20:26:18 +0300 Subject: [PATCH] Bit fix --- lib/subghz/protocols/nice_flor_s.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/subghz/protocols/nice_flor_s.c b/lib/subghz/protocols/nice_flor_s.c index 328c83ca7..e680f4519 100644 --- a/lib/subghz/protocols/nice_flor_s.c +++ b/lib/subghz/protocols/nice_flor_s.c @@ -187,8 +187,10 @@ static void subghz_protocol_encoder_nice_flor_s_get_upload( add_data[8] = 0; add_data[9] = 0; subghz_protocol_nice_one_get_data(add_data, i, 1); - for(size_t j = 6; j < 9; j++) { - instance->generic.data_2 = instance->generic.data_2 << 8 | add_data[j]; + instance->generic.data_2 = 0; + for(size_t j = 7; j < 10; j++) { + instance->generic.data_2 <<= 8; + instance->generic.data_2 += add_data[j]; } //Send key data