This commit is contained in:
assasinfil 2023-02-11 20:26:18 +03:00
parent 92d55ec90f
commit f388a7ecab
No known key found for this signature in database
GPG Key ID: E5C793A4B4737A16

View File

@ -187,8 +187,10 @@ static void subghz_protocol_encoder_nice_flor_s_get_upload(
add_data[8] = 0; add_data[8] = 0;
add_data[9] = 0; add_data[9] = 0;
subghz_protocol_nice_one_get_data(add_data, i, 1); subghz_protocol_nice_one_get_data(add_data, i, 1);
for(size_t j = 6; j < 9; j++) { instance->generic.data_2 = 0;
instance->generic.data_2 = instance->generic.data_2 << 8 | add_data[j]; for(size_t j = 7; j < 10; j++) {
instance->generic.data_2 <<= 8;
instance->generic.data_2 += add_data[j];
} }
//Send key data //Send key data