Skip to content

Commit 12e2d6a

Browse files
committed
Noted bug in vTaskAdjustLoad
1 parent 996e59f commit 12e2d6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ vTaskAdjustLoad([[maybe_unused]] void *pvParameters) { // NOSONAR
527527
// Delay an extra 1/2 second
528528
delay(RUN::TASK_INTERVALS::TI_ADJUST_LOAD_mS);
529529
} else if ((powerHistory.size() >= 3) &&
530-
(INA260::power_mW < powerHistory[powerHistory.size() - 3]) &&
531-
(INA260::power_mW < powerHistory[powerHistory.size() - 2]) &&
530+
(INA260::power_mW < powerHistory[powerHistory.size() - 3]) && // TODO
531+
(INA260::power_mW < powerHistory[powerHistory.size() - 2]) && // FIXME:
532532
(INA260::power_mW < powerHistory[powerHistory.size() - 1]) &&
533533
(adjustmentHistory.back() == LoadAdjustment::DECREASE) &&
534534
(powerIndex <

0 commit comments

Comments
 (0)