mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-03 17:21:42 +02:00
Allow release of reserved current regardless of the reservation having been granted
This commit is contained in:
@ -49,7 +49,7 @@ void PowerScheduler::releaseCurrent(PowerParameters::PowerConsumers consumer) {
|
||||
portENTER_CRITICAL(&mux);
|
||||
for (auto it = currentAllowances.begin(); it != currentAllowances.end();
|
||||
++it) {
|
||||
if (it->consumer == consumer && it->granted) {
|
||||
if (it->consumer == consumer) {
|
||||
currentAllowances.erase(it);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user