fixed a bug (dayOfWeek starts with 0 in GWEN_TIMESTAMP, 1 in DS3231)

This commit is contained in:
Martin Preuss
2026-03-16 18:04:00 +01:00
parent d688cd3d26
commit 1d39c3c773

View File

@@ -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 */