mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-06-11 02:25:24 -04:00
Minor: Watchman Sonic Advanced correct message length constant
Related to issue #3525, CRC error because of wrong message length.
This commit is contained in:
@@ -49,7 +49,7 @@ static int oil_watchman_advanced_decode(r_device *decoder, bitbuffer_t *bitbuffe
|
||||
{
|
||||
static uint8_t const PREAMBLE_SYNC_LENGTH_BITS = 40;
|
||||
static uint8_t const HEADER_LENGTH_BITS = 8;
|
||||
static uint8_t const BODY_LENGTH_BITS = 144;
|
||||
static uint8_t const BODY_LENGTH_BITS = 128; // payload 14 byte + crc 2 byte, issue #3525
|
||||
// no need to match all the preamble; 24 bits worth should do
|
||||
// include part of preamble, sync-word, length, message identifier
|
||||
uint8_t const preamble_pattern[] = {0xaa, 0xaa, 0xaa, 0x2d, 0xd4, 0x0e};
|
||||
|
||||
Reference in New Issue
Block a user