]> git.earman.xyz Git - sensor-watch.git/commitdiff
add hardcoded frequency correction values
authorjoeycastillo <joeycastillo@utexas.edu>
Wed, 25 Jan 2023 16:37:16 +0000 (10:37 -0600)
committerjoeycastillo <joeycastillo@utexas.edu>
Wed, 25 Jan 2023 16:37:16 +0000 (10:37 -0600)
movement/movement.c

index 1bb4a3af5238eb9b5b361ca152313e35675581f0..641595197077570c320c586acb9d86412c25bdb2 100644 (file)
@@ -317,6 +317,12 @@ uint8_t movement_claim_backup_register(void) {
 }
 
 void app_init(void) {
+#ifdef WATCH_IS_BLUE_BOARD
+    watch_rtc_freqcorr_write(11, 0);
+#else
+    watch_rtc_freqcorr_write(22, 0);
+#endif
+
     memset(&movement_state, 0, sizeof(movement_state));
 
     movement_state.settings.bit.led_red_color = MOVEMENT_DEFAULT_RED_COLOR;