From 1d39c3c773d145eca3efd2a38b9261029b15c15e Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 16 Mar 2026 18:04:00 +0100 Subject: [PATCH] fixed a bug (dayOfWeek starts with 0 in GWEN_TIMESTAMP, 1 in DS3231) --- aqhome/msg/node/m_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqhome/msg/node/m_time.c b/aqhome/msg/node/m_time.c index 662aa70..378c746 100644 --- a/aqhome/msg/node/m_time.c +++ b/aqhome/msg/node/m_time.c @@ -54,7 +54,7 @@ AQH_MESSAGE *AQH_TimeMessage_new(uint8_t destAddr, uint8_t srcAddr, uint8_t code *(ptr++)=GWEN_Timestamp_GetMonth(ts) & 0xff; /* month */ *(ptr++)=GWEN_Timestamp_GetDay(ts) & 0xff; /* day of month */ - *(ptr++)=GWEN_Timestamp_GetWeekDay(ts) & 0xff; /* day of week */ + *(ptr++)=((GWEN_Timestamp_GetWeekDay(ts)+1) & 0xff); /* day of week */ *(ptr++)=GWEN_Timestamp_GetHour(ts) & 0xff; /* hour */ *(ptr++)=GWEN_Timestamp_GetMinute(ts) & 0xff; /* minute */ *(ptr++)=GWEN_Timestamp_GetSecond(ts) & 0xff; /* second */