Skip to content

Commit 949ac56

Browse files
committed
Load: Probable Fix for failure to resume adjustment
1 parent 352d506 commit 949ac56

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ vTaskAdjustLoad([[maybe_unused]] void *pvParameters) { // NOSONAR
465465
// of checking dPower_mWPS
466466
// Run algo again if power increases by more than 30% in five
467467
// seconds
468-
adjustmentHistory[0] = LoadAdjustment::NONE;
469-
adjustmentHistory[1] = LoadAdjustment::NONE;
468+
// adjustmentHistory[0] = LoadAdjustment::NONE;
469+
// adjustmentHistory[1] = LoadAdjustment::NONE;
470+
adjustmentHistory.clear();
470471
ESP_LOGI(TAG, "Running load adjustment");
471472
ESP_LOGI(TAG, "Last power: %d mW, current power: %d mW",
472473
static_cast<int>(powerHistory.back()),

0 commit comments

Comments
 (0)