This commit is contained in:
Lubos Petrovic
2020-12-21 14:04:52 +01:00
parent 5721a8aaef
commit d0c5eb72b1

View File

@@ -76,6 +76,7 @@ void CommObd2Can::mainLoop() {
break; break;
delay(10); delay(10);
} }
delay(30);
} }
Serial.println(liveData->params.currentTime ); Serial.println(liveData->params.currentTime );
if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 500) { if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 500) {
@@ -104,6 +105,7 @@ void CommObd2Can::executeCommand(String cmd) {
String atsh = "0" + liveData->currentAtshRequest.substring(4); // remove ATSH String atsh = "0" + liveData->currentAtshRequest.substring(4); // remove ATSH
cmd.replace(" ", ""); // remove possible spaces cmd.replace(" ", ""); // remove possible spaces
sendPID(liveData->hexToDec(atsh, 2, false), cmd); sendPID(liveData->hexToDec(atsh, 2, false), cmd);
delay(40);
} }
/** /**