summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-04-21 11:46:56 -0400
committerJoey Castillo <joeycastillo@utexas.edu>2022-04-21 13:40:58 -0400
commita6024e9fdae3d41fc12c40920bc16899f73efd63 (patch)
treec4754efea37368d49bc8b17aaee081a4ab3769d7
parent19dac66a3bd84cf7868d2a27225e92a5a486c03d (diff)
downloadSensor-Watch-a6024e9fdae3d41fc12c40920bc16899f73efd63.tar.gz
Sensor-Watch-a6024e9fdae3d41fc12c40920bc16899f73efd63.tar.bz2
Sensor-Watch-a6024e9fdae3d41fc12c40920bc16899f73efd63.zip
stargazer firmware: make LED red by default
-rw-r--r--movement/alt_fw/the_stargazer.h5
-rw-r--r--movement/movement.c4
2 files changed, 9 insertions, 0 deletions
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;