Merge pull request #8973 from Bettman66/development

millennium error
This commit is contained in:
Theo Arends 2020-07-25 09:36:47 +02:00 committed by GitHub
commit be77aea059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;