From 8a46dcf7670caccb4898f081e3c8ef282ddd684e Mon Sep 17 00:00:00 2001 From: Yves De Muyter Date: Wed, 6 Jan 2021 15:19:44 +0100 Subject: [PATCH] Respond correctly to the time request from the MCU using the TuyaMCU protocol. --- tasmota/xdrv_16_tuyamcu.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_16_tuyamcu.ino b/tasmota/xdrv_16_tuyamcu.ino index 278564047..a291d2e11 100644 --- a/tasmota/xdrv_16_tuyamcu.ino +++ b/tasmota/xdrv_16_tuyamcu.ino @@ -948,7 +948,11 @@ void TuyaNormalPowerModePacketProcess(void) } TuyaRequestState(0); break; - +#ifdef USE_TUYA_TIME + case TUYA_CMD_SET_TIME: + TuyaSetTime(); + break; +#endif default: AddLog_P(LOG_LEVEL_DEBUG, PSTR("TYA: RX unknown command")); }