Improve naming

This commit is contained in:
2025-02-16 12:22:23 +01:00
parent 33c23cb4f8
commit b410338109
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ void PowerScheduler::checkWaitingTasks(void) {
// If there are requested allowances, try to grant the one expiring next // If there are requested allowances, try to grant the one expiring next
if (this->currentAllowances.size() > 0) { if (this->currentAllowances.size() > 0) {
PowerScheduler::CurrentAllowance *nextAllowance = getNextAllowance(); PowerScheduler::CurrentAllowance *nextAllowance = getNextCurrentAllowance();
if (nextAllowance != nullptr) { if (nextAllowance != nullptr) {
xTaskNotify(nextAllowance->taskHandle, xTaskNotify(nextAllowance->taskHandle,
PowerScheduler::PowerWakeupReasons::POWER_AVAILABLE, PowerScheduler::PowerWakeupReasons::POWER_AVAILABLE,
@ -239,7 +239,7 @@ PowerScheduler::getCurrentAllowance(TaskHandle_t taskHandle) {
} }
return nullptr; return nullptr;
} }
PowerScheduler::CurrentAllowance *PowerScheduler::getNextAllowance(void) { PowerScheduler::CurrentAllowance *PowerScheduler::getNextCurrentAllowance(void) {
TickType_t minTicks = UINT32_MAX; TickType_t minTicks = UINT32_MAX;
CurrentAllowance *nextAllowance = nullptr; CurrentAllowance *nextAllowance = nullptr;

View File

@ -147,7 +147,7 @@ public:
CurrentAllowance *getCurrentAllowance(TaskHandle_t taskHandle); CurrentAllowance *getCurrentAllowance(TaskHandle_t taskHandle);
// @brief Retrieve the allowance that will expire next // @brief Retrieve the allowance that will expire next
CurrentAllowance *getNextAllowance(void); CurrentAllowance *getNextCurrentAllowance(void);
protected: protected:
// Current above which there will be no new scheduling // Current above which there will be no new scheduling