From 767e5387e121b343f942f9903441794217e9fff6 Mon Sep 17 00:00:00 2001 From: Michal Bozon Date: Thu, 8 Jun 2023 19:19:33 +0200 Subject: [PATCH] Fix Eurochron-EFTH800 radio_clock hour decoding (#2526) This Fixes #2525. Related: #1375, #2331 --- src/devices/efth800.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/efth800.c b/src/devices/efth800.c index 2c20f90f..76f1a0a1 100644 --- a/src/devices/efth800.c +++ b/src/devices/efth800.c @@ -54,8 +54,9 @@ static int eurochron_efth800_decode(r_device *decoder, bitbuffer_t *bitbuffer) uint8_t *b = bitbuffer->bb[row]; // 0 1 2 3 4 5 6 7 - // ?1b CH:3d ID:12d 2b H?6d 2b M:6d 2b S:6d Y?7d D:5d M:4d CHK?8h 1x - int dcf77_hour = (b[2] & 0x3f); + // ?1b CH:3d ID:12d 3b H?5d 2b M:6d 2b S:6d Y?7d D:5d M:4d CHK?8h 1x + // TODO: (b[2] >> 5) may have DST and/or TZ info ? + int dcf77_hour = (b[2] & 0x1f); int dcf77_min = (b[3] & 0x3f); int dcf77_sec = (b[4] & 0x3f); int dcf77_year = (b[5] >> 1); -- 2.45.2