Skip to content

Commit

Permalink
Fix r433 comment about which bits of Digoo we drop
Browse files Browse the repository at this point in the history
There are only 4 bits (all always 1) in the Digoo transmission that we
drop, not 5.
  • Loading branch information
u1f35c committed Jan 21, 2020
1 parent e009941 commit 5cf69ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r433.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static bool decode_digoo(unsigned int changeCount)
return false;

if (i > 48 && i < 57) {
/* 4 bits of 1 (4T) in bits 25->29 */
/* 4 bits of 1 (4T) in bits 25->28 */
if (diff(timings[i + 1], 4 * T) > delayTolerance)
return false;
} else {
Expand Down

0 comments on commit 5cf69ab

Please sign in to comment.