From d40d2838f04c869bd6fd1fa4376742f0e4c2318e Mon Sep 17 00:00:00 2001 From: Francois Date: Fri, 19 Apr 2024 08:01:14 -0400 Subject: [PATCH] Set time variables only on timestamp message. --- src/dscKeybusProcessData.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/dscKeybusProcessData.cpp b/src/dscKeybusProcessData.cpp index 395c749..8805b23 100644 --- a/src/dscKeybusProcessData.cpp +++ b/src/dscKeybusProcessData.cpp @@ -499,10 +499,9 @@ void dscKeybusInterface::processPanel_0x87() { void dscKeybusInterface::processPanel_0xA5() { if (!validCRC()) return; - processTime(2); - // Timestamp if (panelData[6] == 0 && panelData[7] == 0) { + processTime(2); statusChanged = true; timestampChanged = true; return; @@ -579,7 +578,13 @@ void dscKeybusInterface::processPanel_0xEB() { if (!validCRC()) return; if (dscPartitions < 3) return; - processTime(3); + // Timestamp + if (panelData[6] == 0 && panelData[7] == 0) { + processTime(3); + statusChanged = true; + timestampChanged = true; + return; + } byte partition; switch (panelData[2]) {