mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-10 05:59:08 -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;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user