@@ -105,10 +105,10 @@ void ws_protocol_decoder_acurite_986_reset(void* context) {
105105static bool ws_protocol_acurite_986_check (WSProtocolDecoderAcurite_986 * instance ) {
106106 if (!instance -> decoder .decode_data ) return false;
107107 uint8_t msg [] = {
108- instance -> decoder .decode_data >> 32 ,
109- instance -> decoder .decode_data >> 24 ,
110- instance -> decoder .decode_data >> 16 ,
111- instance -> decoder .decode_data >> 8 };
108+ instance -> decoder .decode_data >> 32 ,
109+ instance -> decoder .decode_data >> 24 ,
110+ instance -> decoder .decode_data >> 16 ,
111+ instance -> decoder .decode_data >> 8 };
112112
113113 uint8_t crc = subghz_protocol_blocks_crc8 (msg , 4 , 0x07 , 0x00 );
114114 return (crc == (instance -> decoder .decode_data & 0xFF ));
@@ -122,7 +122,8 @@ static void ws_protocol_acurite_986_remote_controller(WSBlockGeneric* instance)
122122 int temp ;
123123
124124 instance -> id = subghz_protocol_blocks_reverse_key (instance -> data >> 24 , 8 );
125- instance -> id = (instance -> id << 8 ) | subghz_protocol_blocks_reverse_key (instance -> data >> 16 , 8 );
125+ instance -> id = (instance -> id << 8 ) |
126+ subghz_protocol_blocks_reverse_key (instance -> data >> 16 , 8 );
126127 instance -> battery_low = (instance -> data >> 14 ) & 1 ;
127128 instance -> channel = ((instance -> data >> 15 ) & 1 ) + 1 ;
128129
@@ -152,7 +153,7 @@ void ws_protocol_decoder_acurite_986_feed(void* context, bool level, uint32_t du
152153
153154 case Acurite_986DecoderStepSync1 :
154155 if (DURATION_DIFF (duration , ws_protocol_acurite_986_const .te_long ) <
155- ws_protocol_acurite_986_const .te_delta * 15 ) {
156+ ws_protocol_acurite_986_const .te_delta * 15 ) {
156157 if (!level ) {
157158 instance -> decoder .parser_step = Acurite_986DecoderStepSync2 ;
158159 }
@@ -163,7 +164,7 @@ void ws_protocol_decoder_acurite_986_feed(void* context, bool level, uint32_t du
163164
164165 case Acurite_986DecoderStepSync2 :
165166 if (DURATION_DIFF (duration , ws_protocol_acurite_986_const .te_long ) <
166- ws_protocol_acurite_986_const .te_delta * 15 ) {
167+ ws_protocol_acurite_986_const .te_delta * 15 ) {
167168 if (!level ) {
168169 instance -> decoder .parser_step = Acurite_986DecoderStepSync3 ;
169170 }
@@ -174,7 +175,7 @@ void ws_protocol_decoder_acurite_986_feed(void* context, bool level, uint32_t du
174175
175176 case Acurite_986DecoderStepSync3 :
176177 if (DURATION_DIFF (duration , ws_protocol_acurite_986_const .te_long ) <
177- ws_protocol_acurite_986_const .te_delta * 15 ) {
178+ ws_protocol_acurite_986_const .te_delta * 15 ) {
178179 if (!level ) {
179180 instance -> decoder .parser_step = Acurite_986DecoderStepSaveDuration ;
180181 }
@@ -195,7 +196,7 @@ void ws_protocol_decoder_acurite_986_feed(void* context, bool level, uint32_t du
195196 case Acurite_986DecoderStepCheckDuration :
196197 if (!level ) {
197198 if (DURATION_DIFF (duration , ws_protocol_acurite_986_const .te_short ) <
198- ws_protocol_acurite_986_const .te_delta * 10 ) {
199+ ws_protocol_acurite_986_const .te_delta * 10 ) {
199200 if (duration < ws_protocol_acurite_986_const .te_short ) {
200201 subghz_protocol_blocks_add_bit (& instance -> decoder , 0 );
201202 instance -> decoder .parser_step = Acurite_986DecoderStepSaveDuration ;
@@ -206,8 +207,9 @@ void ws_protocol_decoder_acurite_986_feed(void* context, bool level, uint32_t du
206207 } else {
207208 //Found syncPostfix
208209 instance -> decoder .parser_step = Acurite_986DecoderStepReset ;
209- if ((instance -> decoder .decode_count_bit == ws_protocol_acurite_986_const .min_count_bit_for_found ) &&
210- ws_protocol_acurite_986_check (instance )) {
210+ if ((instance -> decoder .decode_count_bit ==
211+ ws_protocol_acurite_986_const .min_count_bit_for_found ) &&
212+ ws_protocol_acurite_986_check (instance )) {
211213 instance -> generic .data = instance -> decoder .decode_data ;
212214 instance -> generic .data_count_bit = instance -> decoder .decode_count_bit ;
213215 ws_protocol_acurite_986_remote_controller (& instance -> generic );
@@ -245,9 +247,7 @@ SubGhzProtocolStatus
245247 furi_assert (context );
246248 WSProtocolDecoderAcurite_986 * instance = context ;
247249 return ws_block_generic_deserialize_check_count_bit (
248- & instance -> generic ,
249- flipper_format ,
250- ws_protocol_acurite_986_const .min_count_bit_for_found );
250+ & instance -> generic , flipper_format , ws_protocol_acurite_986_const .min_count_bit_for_found );
251251}
252252
253253void ws_protocol_decoder_acurite_986_get_string (void * context , FuriString * output ) {
0 commit comments