From a6024e9fdae3d41fc12c40920bc16899f73efd63 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Thu, 21 Apr 2022 11:46:56 -0400 Subject: stargazer firmware: make LED red by default --- movement/alt_fw/the_stargazer.h | 5 +++++ movement/movement.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/movement/alt_fw/the_stargazer.h b/movement/alt_fw/the_stargazer.h index 320436ad..edf49ffa 100644 --- a/movement/alt_fw/the_stargazer.h +++ b/movement/alt_fw/the_stargazer.h @@ -27,6 +27,11 @@ #include "movement_faces.h" +#define MOVEMENT_CUSTOM_BOOT_COMMANDS() { \ + movement_state.settings.bit.led_green_color = 0x0;\ + movement_state.settings.bit.led_red_color = 0xF;\ +} + const watch_face_t watch_faces[] = { simple_clock_face, astronomy_face, diff --git a/movement/movement.c b/movement/movement.c index 22175efe..c3beec87 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -268,6 +268,10 @@ 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; -- cgit v1.2.3