From e40444b5260fd8e0091adcc2c931de1d68706992 Mon Sep 17 00:00:00 2001 From: assasinfil Date: Fri, 10 Feb 2023 21:49:28 +0300 Subject: [PATCH] Iterators fix --- lib/subghz/protocols/alutech_at_4n.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/subghz/protocols/alutech_at_4n.c b/lib/subghz/protocols/alutech_at_4n.c index 489f5e2e3..78cfa2a0f 100644 --- a/lib/subghz/protocols/alutech_at_4n.c +++ b/lib/subghz/protocols/alutech_at_4n.c @@ -334,7 +334,7 @@ static bool subghz_protocol_encoder_alutech_at_4n_get_upload( (uint32_t)subghz_protocol_alutech_at_4n_const.te_long * 4; // Send key data - for(uint8_t i = 64; i > 0; ++i) { + for(uint8_t i = 64; i > 0; --i) { if(bit_read(instance->generic.data, i - 1)) { //1 instance->encoder.upload[index++] = @@ -350,7 +350,7 @@ static bool subghz_protocol_encoder_alutech_at_4n_get_upload( } } // Send crc - for(uint8_t i = 8; i > 0; ++i) { + for(uint8_t i = 8; i > 0; --i) { if(bit_read(instance->crc, i - 1)) { //1 instance->encoder.upload[index++] =