From 975d22d1fe8ab9e7911775577f9ab079c0a55bfb Mon Sep 17 00:00:00 2001 From: macduyhai Date: Thu, 21 Apr 2022 16:36:47 +0700 Subject: [PATCH] Add code test time open door from enigne --- .../Lock_Timer_21042022_Test_TimeOpenDoor.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor.ino b/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor.ino index f00e2bf..6926c51 100644 --- a/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor.ino +++ b/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor/Lock_Timer_21042022_Test_TimeOpenDoor.ino @@ -160,7 +160,7 @@ void SerialRead() input.trim(); if(input.indexOf("tdoor")!= -1){ // msg = tdoor_6 // Serial.println(Time_openRelay); - long t = input.substring(6)).toInt(); + int t = input.substring(6).toInt(); if (t !=0){ Time_openRelay = t*1000; }