File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#define DIP_PATTERN "%c%c%c%c%c%c%c%c%c%c"
12
12
#define DATA_TO_DIP (dip ) \
13
- (dip & 0x0200 ? '1 ' : '0 '), (dip & 0x0100 ? '1 ' : '0 '), (dip & 0x0080 ? '1 ' : '0 '), \
14
- (dip & 0x0040 ? '1 ' : '0 '), (dip & 0x0020 ? '1 ' : '0 '), (dip & 0x0010 ? '1 ' : '0 '), \
15
- (dip & 0x0008 ? '1 ' : '0 '), (dip & 0x0004 ? '1 ' : '0 '), (dip & 0x0002 ? '1 ' : '0 '), \
16
- (dip & 0x0001 ? '1 ' : '0 ')
13
+ (dip & 0x0200 ? '0 ' : '1 '), (dip & 0x0100 ? '0 ' : '1 '), (dip & 0x0080 ? '0 ' : '1 '), \
14
+ (dip & 0x0040 ? '0 ' : '1 '), (dip & 0x0020 ? '0 ' : '1 '), (dip & 0x0010 ? '0 ' : '1 '), \
15
+ (dip & 0x0008 ? '0 ' : '1 '), (dip & 0x0004 ? '0 ' : '1 '), (dip & 0x0002 ? '0 ' : '1 '), \
16
+ (dip & 0x0001 ? '0 ' : '1 ')
17
17
18
18
static const SubGhzBlockConst subghz_protocol_linear_const = {
19
19
.te_short = 500 ,
@@ -341,5 +341,5 @@ void subghz_protocol_decoder_linear_get_string(void* context, FuriString* output
341
341
instance -> generic .data_count_bit ,
342
342
code_found_lo ,
343
343
code_found_reverse_lo ,
344
- DATA_TO_DIP (code_found_lo ));
344
+ DATA_TO_DIP (code_found_reverse_lo ));
345
345
}
You can’t perform that action at this time.
0 commit comments