]> git.earman.xyz Git - sensor-watch.git/commitdiff
Simple Clock: Update to signal exactly on the hour
authorDavid Keck <davidskeck@users.noreply.github.com>
Wed, 19 Jan 2022 18:06:12 +0000 (12:06 -0600)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 18:06:12 +0000 (12:06 -0600)
I was getting the buzzer at 59 minutes past the hour, not exactly on the hour. This changes to buzzing at exactly HOUR:00:00. Tested this locally.

movement/watch_faces/clock/simple_clock_face.c

index b7d8c88f551206dcd129b1194ddcbdb880c08026..60a7a4db83ea868ad0fa17e304d62efcf7518c65 100644 (file)
@@ -143,5 +143,5 @@ bool simple_clock_face_wants_background_task(movement_settings_t *settings, void
 
     watch_date_time date_time = watch_rtc_get_date_time();
 
-    return date_time.unit.minute == 59;
+    return date_time.unit.minute == 0;
 }