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