millennium error

This commit is contained in:
bettman66 2020-07-25 09:21:56 +02:00
parent 3acae81fc0
commit 0467ffc62a
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ void TuyaSetTime(void) {
uint16_t payload_len = 8;
uint8_t payload_buffer[8];
payload_buffer[0] = 0x01;
payload_buffer[1] = (uint8_t)RtcTime.year;
payload_buffer[1] = RtcTime.year - 2000;
payload_buffer[2] = RtcTime.month;
payload_buffer[3] = RtcTime.day_of_month;
payload_buffer[4] = RtcTime.hour;