Set nguong time truyen xuong <= 30s cho Lock
This commit is contained in:
parent
7f1821622a
commit
8856306ae4
|
@ -161,8 +161,10 @@ void SerialRead()
|
||||||
if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6
|
if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6
|
||||||
// Serial.println(Time_openRelay);
|
// Serial.println(Time_openRelay);
|
||||||
int t = input.substring(6).toInt();
|
int t = input.substring(6).toInt();
|
||||||
if (t !=0){
|
if (t !=0 && t <=30){
|
||||||
Time_openRelay = t*1000;
|
Time_openRelay = t*1000;
|
||||||
|
}else{
|
||||||
|
// Give time old get
|
||||||
}
|
}
|
||||||
// Serial.println(Time_openRelay);
|
// Serial.println(Time_openRelay);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user