From 3fb4c5fd641ce563cca4eff6dc9e5811068cf0df Mon Sep 17 00:00:00 2001 From: Lubos Petrovic Date: Mon, 21 Dec 2020 09:31:30 +0100 Subject: [PATCH] fix --- CommObd2Can.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CommObd2Can.cpp b/CommObd2Can.cpp index a79f897..65085e8 100644 --- a/CommObd2Can.cpp +++ b/CommObd2Can.cpp @@ -77,7 +77,7 @@ void CommObd2Can::mainLoop() { delay(10); } } - if (lastDataSent != 0 || liveData->params.currentTime + 500 > lastDataSent) { + if (lastDataSent != 0 && liveData->params.currentTime + 500 > lastDataSent) { Serial.print("CAN execution timeout. Continue with next command."); liveData->canSendNextAtCommand = true; return; @@ -104,8 +104,6 @@ void CommObd2Can::executeCommand(String cmd) { String atsh = "0" + liveData->currentAtshRequest.substring(4); // remove ATSH cmd.replace(" ", ""); // remove possible spaces sendPID(liveData->hexToDec(atsh, 2, false), cmd); - - //delay(delayTxRx); } /**