fix timeout log comment at boot

This commit is contained in:
interfisch 2021-05-29 11:53:06 +02:00
parent ef988d40e4
commit d2c3ac00cc
1 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ void failChecks() {
controllerFront_connected=false;
writeLogComment(Serial1,loopmillis, "Controller Front feedback timeout");
}
}else if(!controllerFront_connected) { //not timeouted but was before
}else if(!controllerFront_connected && loopmillis > FEEDBACKRECEIVETIMEOUT) { //not timeouted but was before
controllerFront_connected=true;
writeLogComment(Serial1,loopmillis, "Controller Front connected");
}
@ -447,7 +447,7 @@ void failChecks() {
controllerRear_connected=false;
writeLogComment(Serial1,loopmillis, "Controller Rear feedback timeout");
}
}else if(!controllerRear_connected) { //not timeouted but was before
}else if(!controllerRear_connected && loopmillis > FEEDBACKRECEIVETIMEOUT) { //not timeouted but was before
controllerRear_connected=true;
writeLogComment(Serial1,loopmillis, "Controller Rear connected");
}