summaryrefslogtreecommitdiffstats
path: root/movement/movement.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-04-21 15:37:12 -0400
committerJoey Castillo <joeycastillo@utexas.edu>2022-04-21 15:37:12 -0400
commite36af0e5a368290848cec413c799d499e266a0c4 (patch)
tree79bd91f0df40ff2e5a397ad322dd397686a67fa9 /movement/movement.c
parentc78b8d4570436fbbad3be66ec5801736dc462895 (diff)
downloadSensor-Watch-e36af0e5a368290848cec413c799d499e266a0c4.tar.gz
Sensor-Watch-e36af0e5a368290848cec413c799d499e266a0c4.tar.bz2
Sensor-Watch-e36af0e5a368290848cec413c799d499e266a0c4.zip
movement: only run custom commands at first launch
Diffstat (limited to 'movement/movement.c')
-rw-r--r--movement/movement.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/movement/movement.c b/movement/movement.c
index c3beec87..4a5bc04e 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -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;