From 2e58bccbbe3ba6cf131e17c502bf83d28209ddd3 Mon Sep 17 00:00:00 2001 From: Bruno OCTAU <62882637+ProfBoc75@users.noreply.github.com> Date: Tue, 5 May 2026 21:42:16 +0200 Subject: [PATCH] Minor: Watchman Sonic Advanced correct message length constant Related to issue #3525, CRC error because of wrong message length. --- src/devices/oil_watchman_advanced.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/oil_watchman_advanced.c b/src/devices/oil_watchman_advanced.c index 4c2d2ad3..f1f645a1 100644 --- a/src/devices/oil_watchman_advanced.c +++ b/src/devices/oil_watchman_advanced.c @@ -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};