This commit is contained in:
assasinfil 2023-02-10 16:17:56 +03:00
parent a551317cc2
commit d9f6b02da5
No known key found for this signature in database
GPG key ID: E5C793A4B4737A16

View file

@ -246,7 +246,7 @@ static bool subghz_protocol_encoder_kinggates_stylo_4k_get_upload(
} }
} }
for(uint8_t i = 36; i > 4; i--) { for(uint8_t i = 36; i > 0; i--) {
if(bit_read(instance->generic.data_2, i - 1)) { if(bit_read(instance->generic.data_2, i - 1)) {
//send bit 1 //send bit 1
instance->encoder.upload[index++] = level_duration_make( instance->encoder.upload[index++] = level_duration_make(