mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 18:58:36 -07:00
Fix build
This commit is contained in:
@@ -300,9 +300,11 @@ static void power_loader_callback(const void* message, void* context) {
|
|||||||
Power* power = context;
|
Power* power = context;
|
||||||
const LoaderEvent* event = message;
|
const LoaderEvent* event = message;
|
||||||
|
|
||||||
if(event->type == LoaderEventTypeApplicationStarted) {
|
if(event->type == LoaderEventTypeApplicationBeforeLoad) {
|
||||||
power_auto_shutdown_inhibit(power);
|
power_auto_shutdown_inhibit(power);
|
||||||
} else if(event->type == LoaderEventTypeApplicationStopped) {
|
} else if(
|
||||||
|
event->type == LoaderEventTypeApplicationLoadFailed ||
|
||||||
|
event->type == LoaderEventTypeApplicationStopped) {
|
||||||
power_auto_shutdown_arm(power);
|
power_auto_shutdown_arm(power);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user