Skip to content

Commit

Permalink
...and then light the LED when rest is detected, as a debug step
Browse files Browse the repository at this point in the history
  • Loading branch information
kounocom committed Oct 11, 2024
1 parent 4950a17 commit 2ef6306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sensors/nonblockingcalibration/NonBlockingCalibration.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class NonBlockingCalibrator {
}

void tick() {
if (fusion.getRestDetected()) ledManager.on();
else ledManager.off();
if (skippedAStep && !lastTickRest && fusion.getRestDetected()) {
computeNextCalibrationStep();
skippedAStep = false;
Expand Down

0 comments on commit 2ef6306

Please sign in to comment.