Add code test time open door from enigne

This commit is contained in:
macduyhai 2022-04-21 16:36:47 +07:00
parent ac45124271
commit 975d22d1fe

View File

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