Skip to content

Commit

Permalink
adjusting delta calculation for better WT0124 decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
halfbakery committed Sep 3, 2019
1 parent 32e9d05 commit 4beca32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RF_Handling.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ uint8_t Compute_CRC8_Simple_OneByte(uint8_t byteVal)

uint16_t compute_delta(uint16_t bucket)
{
//return ((bucket >> 2) + (bucket >> 4));
return (bucket >> 2); // 25% delta of bucket for advanced decoding
return ((bucket >> 2) + (bucket >> 4));
//return (bucket >> 2); // 25% delta of bucket for advanced decoding
}

bool CheckRFBucket(uint16_t duration, uint16_t bucket, uint16_t delta)
Expand Down

0 comments on commit 4beca32

Please sign in to comment.