live view is confused by conditional compilation #3773

ops
This commit is contained in:
rusefillc 2022-01-11 14:24:53 -05:00
parent 1bcb3e8033
commit 3528befe13
1 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,12 @@ float IdleController::getClosedLoop(IIdleController::Phase phase, float tpsPos,
}
float IdleController::getIdlePosition() {
// Simplify hardware CI: we borrow the idle valve controller as a PWM source for various stimulation tasks
// The logic in this function is solidly unit tested, so it's not necessary to re-test the particulars on real hardware.
#ifdef HARDWARE_CI
return engineConfiguration->manIdlePosition;
#endif
/*
* Here we have idle logic thread - actual stepper movement is implemented in a separate
* working thread see stepper.cpp