Skip to content

Commit 19f788d

Browse files
authored
Minor: Watchman Sonic Advanced correct message length constant
Related to issue #3525, CRC error because of wrong message length.
1 parent 2e58bcc commit 19f788d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/devices/oil_watchman_advanced.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static int oil_watchman_advanced_decode(r_device *decoder, bitbuffer_t *bitbuffe
4949
{
5050
static uint8_t const PREAMBLE_SYNC_LENGTH_BITS = 40;
5151
static uint8_t const HEADER_LENGTH_BITS = 8;
52-
static uint8_t const BODY_LENGTH_BITS = 128; // payload 14 byte + crc 2 byte, issue #3525
52+
static uint8_t const BODY_LENGTH_BITS = 128; // payload 14 byte + crc 2 byte, issue #3525
5353
// no need to match all the preamble; 24 bits worth should do
5454
// include part of preamble, sync-word, length, message identifier
5555
uint8_t const preamble_pattern[] = {0xaa, 0xaa, 0xaa, 0x2d, 0xd4, 0x0e};

0 commit comments

Comments
 (0)