Set nguong time truyen xuong <= 30s cho Lock

This commit is contained in:
macduyhai 2022-06-21 10:53:32 +07:00
parent 7f1821622a
commit 8856306ae4

View File

@ -161,8 +161,10 @@ void SerialRead()
if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6
// Serial.println(Time_openRelay);
int t = input.substring(6).toInt();
if (t !=0){
if (t !=0 && t <=30){
Time_openRelay = t*1000;
}else{
// Give time old get
}
// Serial.println(Time_openRelay);
}