mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
FindMy: Resume at system boot if enabled
This commit is contained in:
11
applications/system/findmy/findmy_startup.c
Normal file
11
applications/system/findmy/findmy_startup.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "findmy_state.h"
|
||||
#include <furi_hal.h>
|
||||
|
||||
void findmy_startup() {
|
||||
if(!furi_hal_is_normal_boot()) return;
|
||||
|
||||
FindMyState state;
|
||||
if(findmy_state_load(&state)) {
|
||||
findmy_state_apply(&state);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user