]> git.earman.xyz Git - sensor-watch.git/commitdiff
stargazer firmware: make LED red by default
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 21 Apr 2022 15:46:56 +0000 (11:46 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 21 Apr 2022 17:40:58 +0000 (13:40 -0400)
movement/alt_fw/the_stargazer.h
movement/movement.c

index 320436adc37e4c503fb811836097092bd73cfabe..edf49ffa44b93cdf596e464df430b60ec673761c 100644 (file)
 
 #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,
index 22175efeabeff7cf9d9f644259ecbed4198c7270..c3beec874f1430eb0ccf700faa7955cb45f016d9 100644 (file)
@@ -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;