fix
This commit is contained in:
@@ -77,7 +77,7 @@ void CommObd2Can::mainLoop() {
|
|||||||
delay(1);
|
delay(1);
|
||||||
// apply timeout for next frames loop too
|
// apply timeout for next frames loop too
|
||||||
if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 100) {
|
if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 100) {
|
||||||
Serial.print("CAN execution timeout (multiframe message).");
|
Serial.print("CAN execution timeout (multiframe message).\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ void CommObd2Can::mainLoop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 100) {
|
if (lastDataSent != 0 && (unsigned long)(millis() - lastDataSent) > 100) {
|
||||||
Serial.print("CAN execution timeout. Continue with next command.");
|
Serial.print("CAN execution timeout. Continue with next command.\n");
|
||||||
liveData->canSendNextAtCommand = true;
|
liveData->canSendNextAtCommand = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user