Respond correctly to the time request from the MCU using the TuyaMCU protocol.

This commit is contained in:
Yves De Muyter 2021-01-06 15:19:44 +01:00
parent 6b16745cf0
commit 8a46dcf767

View File

@ -948,7 +948,11 @@ void TuyaNormalPowerModePacketProcess(void)
} }
TuyaRequestState(0); TuyaRequestState(0);
break; break;
#ifdef USE_TUYA_TIME
case TUYA_CMD_SET_TIME:
TuyaSetTime();
break;
#endif
default: default:
AddLog_P(LOG_LEVEL_DEBUG, PSTR("TYA: RX unknown command")); AddLog_P(LOG_LEVEL_DEBUG, PSTR("TYA: RX unknown command"));
} }