mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 09:41:43 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user