diff --git a/src/power/PowerScheduler.cpp b/src/power/PowerScheduler.cpp index beb3d5d..05c48a2 100644 --- a/src/power/PowerScheduler.cpp +++ b/src/power/PowerScheduler.cpp @@ -181,7 +181,7 @@ void PowerScheduler::checkWaitingTasks(void) { // If there are requested allowances, try to grant the one expiring next if (this->currentAllowances.size() > 0) { - PowerScheduler::CurrentAllowance *nextAllowance = getNextAllowance(); + PowerScheduler::CurrentAllowance *nextAllowance = getNextCurrentAllowance(); if (nextAllowance != nullptr) { xTaskNotify(nextAllowance->taskHandle, PowerScheduler::PowerWakeupReasons::POWER_AVAILABLE, @@ -239,7 +239,7 @@ PowerScheduler::getCurrentAllowance(TaskHandle_t taskHandle) { } return nullptr; } -PowerScheduler::CurrentAllowance *PowerScheduler::getNextAllowance(void) { +PowerScheduler::CurrentAllowance *PowerScheduler::getNextCurrentAllowance(void) { TickType_t minTicks = UINT32_MAX; CurrentAllowance *nextAllowance = nullptr; diff --git a/src/power/PowerScheduler.h b/src/power/PowerScheduler.h index 92127b9..c0e93aa 100644 --- a/src/power/PowerScheduler.h +++ b/src/power/PowerScheduler.h @@ -147,7 +147,7 @@ public: CurrentAllowance *getCurrentAllowance(TaskHandle_t taskHandle); // @brief Retrieve the allowance that will expire next - CurrentAllowance *getNextAllowance(void); + CurrentAllowance *getNextCurrentAllowance(void); protected: // Current above which there will be no new scheduling