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
1 changed files with 5 additions and 1 deletions

View File

@ -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"));
}