mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 01:31:41 +02:00
Improve naming
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user