From db5e242ad8cfb6b16775baf22c063e0627529958 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Fri, 4 Feb 2022 17:36:30 +0100 Subject: [PATCH] Various changes --- src/ams/hdlc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ams/hdlc.cpp b/src/ams/hdlc.cpp index 618ce8b0..a609683d 100644 --- a/src/ams/hdlc.cpp +++ b/src/ams/hdlc.cpp @@ -268,7 +268,7 @@ int HDLC_validate(const uint8_t* d, int length, HDLCConfig* config, CosemDateTim } else if(dateTime->base.type == CosemTypeDateTime) { memcpy(timestamp, ptr, dateTime->base.length); } else if(dateTime->base.type == 0x0C) { // Kamstrup bug... - memcpy(timestamp, ptr, 0x13); + memcpy(timestamp, ptr, 13); ptr += 13; } else { return HDLC_TIMESTAMP_UNKNOWN;