]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix sleep mode animation
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 15:14:26 +0000 (11:14 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 15:14:26 +0000 (11:14 -0400)
watch-library/hardware/watch/watch_slcd.c

index aa04ccea0016590c102faddada4bd702e9c934c5..9140e8a8b7336149909d94fa95c3d5a0828fd039 100644 (file)
@@ -119,6 +119,7 @@ void watch_stop_blink(void) {
 void watch_start_tick_animation(uint32_t duration) {
     watch_display_character(' ', 8);
 
+    slcd_disable();
     slcd_set_frame_counter_enabled(1, false);
     slcd_set_circular_shift_animation_enabled(false);
 
@@ -129,8 +130,9 @@ void watch_start_tick_animation(uint32_t duration) {
     }
     slcd_set_frame_counter_enabled(1, true);
 
-    slcd_configure_circular_shift_animation(0b00000001, 2, SLCD_CSRSHIFT_LEFT, 1);
+    slcd_configure_circular_shift_animation(0b00000001, 1, SLCD_CSRSHIFT_LEFT, 1);
     slcd_set_circular_shift_animation_enabled(true);
+    slcd_enable();
 }
 
 bool watch_tick_animation_is_running(void) {