Fix build

This commit is contained in:
Willy-JL
2024-04-09 22:09:46 +01:00
parent 376da4bd5b
commit 01c55c7b7e

View File

@@ -300,9 +300,11 @@ static void power_loader_callback(const void* message, void* context) {
Power* power = context;
const LoaderEvent* event = message;
if(event->type == LoaderEventTypeApplicationStarted) {
if(event->type == LoaderEventTypeApplicationBeforeLoad) {
power_auto_shutdown_inhibit(power);
} else if(event->type == LoaderEventTypeApplicationStopped) {
} else if(
event->type == LoaderEventTypeApplicationLoadFailed ||
event->type == LoaderEventTypeApplicationStopped) {
power_auto_shutdown_arm(power);
}
}