movement: only run custom commands at first launch
This commit is contained in:
@@ -268,15 +268,15 @@ void app_wake_from_backup(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
#ifdef MOVEMENT_CUSTOM_BOOT_COMMANDS
|
||||
MOVEMENT_CUSTOM_BOOT_COMMANDS()
|
||||
#endif
|
||||
|
||||
watch_store_backup_data(movement_state.settings.reg, 0);
|
||||
|
||||
static bool is_first_launch = true;
|
||||
|
||||
if (is_first_launch) {
|
||||
#ifdef MOVEMENT_CUSTOM_BOOT_COMMANDS
|
||||
MOVEMENT_CUSTOM_BOOT_COMMANDS()
|
||||
#endif
|
||||
|
||||
for(uint8_t i = 0; i < MOVEMENT_NUM_FACES; i++) {
|
||||
watch_face_contexts[i] = NULL;
|
||||
scheduled_tasks[i].reg = 0;
|
||||
|
||||
Reference in New Issue
Block a user