This commit is contained in:
Lubos Petrovic
2020-12-20 22:02:14 +01:00
parent e0f6c09922
commit fb6c79b77a

View File

@@ -81,12 +81,13 @@ void CommObd2Can::executeCommand(String cmd) {
return; return;
} }
// pid // Send command
liveData->responseRowMerged = ""; liveData->responseRowMerged = "";
liveData->currentAtshRequest.replace(" ", ""); liveData->currentAtshRequest.replace(" ", "");
String atsh = "0" + liveData->currentAtshRequest.substring(4); // remove ATSH String atsh = "0" + liveData->currentAtshRequest.substring(4); // remove ATSH
cmd.replace(" ", ""); cmd.replace(" ", "");
sendPID(liveData->hexToDec(atsh, 2, false), cmd); sendPID(liveData->hexToDec(atsh, 2, false), cmd);
//delay(delayTxRx); //delay(delayTxRx);
} }