Skip to content

Commit

Permalink
minor: Clean up Thermopro-TX2C unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Aug 14, 2023
1 parent e7682f8 commit 14eac1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/thermopro_tx2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int thermopro_tx2c_decode(r_device *decoder, bitbuffer_t *bitbuffer)
if ((b[4] & 0x0F) != 0x00 || b[5] != 0x00)
return DECODE_FAIL_SANITY;

int type = b[0] >> 4;
// int type = b[0] >> 4;
int id = (((b[0] & 0xF) << 4) | (b[1] >> 4));
int battery = (b[1] & 0x08) >> 3;
int button = (b[1] & 0x04) >> 2;
Expand Down

0 comments on commit 14eac1c

Please sign in to comment.