fixed a bug (dayOfWeek starts with 0 in GWEN_TIMESTAMP, 1 in DS3231)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user