fix day_of_week in Tuya_mcu

Tasmota begin with 1 for sunday but Tuya MCU Protokoll begin with 1 at monday in "day_of_week"
This commit is contained in:
device111 2020-12-15 01:23:48 +01:00
parent 742929f68e
commit 7b43817dba

View File

@ -1221,7 +1221,7 @@ void TuyaSetTime(void) {
payload_buffer[4] = RtcTime.hour;
payload_buffer[5] = RtcTime.minute;
payload_buffer[6] = RtcTime.second;
payload_buffer[7] = RtcTime.day_of_week;
payload_buffer[7] = RtcTime.day_of_week-1; // 1 for Monday as in TUYA Doc
TuyaSendCmd(TUYA_CMD_SET_TIME, payload_buffer, payload_len);
}