Refactoring of commandQueue to support stxChar defined for each command
This commit is contained in:
@@ -54,7 +54,9 @@ bool CommInterface::doNextQueueCommand() {
|
||||
}
|
||||
|
||||
// Send AT command to obd
|
||||
liveData->commandRequest = liveData->commandQueue[liveData->commandQueueIndex];
|
||||
liveData->commandRequest = liveData->commandQueue[liveData->commandQueueIndex].request;
|
||||
liveData->commandStartChar = liveData->commandQueue[liveData->commandQueueIndex].startChar; // TODO: add to struct?
|
||||
|
||||
if (liveData->commandRequest.startsWith("ATSH")) {
|
||||
liveData->currentAtshRequest = liveData->commandRequest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user