]> git.earman.xyz Git - sensor-watch.git/commitdiff
movement: these durations don't need to be 32-bit ints
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 28 Nov 2021 22:17:51 +0000 (17:17 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 28 Nov 2021 22:17:51 +0000 (17:17 -0500)
movement/movement.c

index 2c8169b9009c51c0716ca0cc6b7f5cbbefd00390..ac1650949916176a567e5b9330b259baff639616 100644 (file)
@@ -8,7 +8,7 @@
 movement_state_t movement_state;
 void * watch_face_contexts[MOVEMENT_NUM_FACES];
 const int32_t movement_le_inactivity_deadlines[8] = {INT_MAX, 3600, 7200, 21600, 43200, 86400, 172800, 604800};
-const int32_t movement_timeout_inactivity_deadlines[4] = {60, 120, 300, 1800};
+const int16_t movement_timeout_inactivity_deadlines[4] = {60, 120, 300, 1800};
 movement_event_t event;
 
 const int16_t movement_timezone_offsets[] = {