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