Add code test time open door from enigne
This commit is contained in:
parent
ac45124271
commit
975d22d1fe
|
@ -160,7 +160,7 @@ void SerialRead()
|
||||||
input.trim();
|
input.trim();
|
||||||
if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6
|
if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6
|
||||||
// Serial.println(Time_openRelay);
|
// Serial.println(Time_openRelay);
|
||||||
long t = input.substring(6)).toInt();
|
int t = input.substring(6).toInt();
|
||||||
if (t !=0){
|
if (t !=0){
|
||||||
Time_openRelay = t*1000;
|
Time_openRelay = t*1000;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user