summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-03-11 16:05:32 -0500
committerGitHub <noreply@github.com>2023-03-11 16:05:32 -0500
commit3dafdc47097d9deb8e94ca5873b66d3ca1d97861 (patch)
treed7cc3f1e4080abb7029c09ff4befae15b364cbeb
parent0e2c179e15e8cd7d15b3e6900ef71f19487fd01b (diff)
parent567a21e8a5f2e2078b6bcabb1f3f86047d513f52 (diff)
downloadSensor-Watch-3dafdc47097d9deb8e94ca5873b66d3ca1d97861.tar.gz
Sensor-Watch-3dafdc47097d9deb8e94ca5873b66d3ca1d97861.tar.bz2
Sensor-Watch-3dafdc47097d9deb8e94ca5873b66d3ca1d97861.zip
Merge pull request #218 from TheOnePerson/fix-interval-face-globals
interval face: make global vars static
-rw-r--r--movement/watch_faces/complication/interval_face.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/movement/watch_faces/complication/interval_face.c b/movement/watch_faces/complication/interval_face.c
index e8ebe321..dabc6b1e 100644
--- a/movement/watch_faces/complication/interval_face.c
+++ b/movement/watch_faces/complication/interval_face.c
@@ -129,15 +129,15 @@ static const int8_t _sound_seq_break[] = {BUZZER_NOTE_B6, 15, BUZZER_NOTE_REST,
static const int8_t _sound_seq_cooldown[] = {BUZZER_NOTE_C7, 15, BUZZER_NOTE_REST, 1, -2, 1, BUZZER_NOTE_C7, 24, 0};
static const int8_t _sound_seq_finish[] = {BUZZER_NOTE_C7, 6, BUZZER_NOTE_E7, 6, BUZZER_NOTE_G7, 6, BUZZER_NOTE_C8, 18, 0};
-interval_setting_idx_t _setting_idx;
-int8_t _ticks;
-bool _erase_timer_flag;
-uint32_t _target_ts;
-uint32_t _now_ts;
-uint32_t _paused_ts;
-uint8_t _timer_work_round;
-uint8_t _timer_full_round;
-uint8_t _timer_run_state;
+static interval_setting_idx_t _setting_idx;
+static int8_t _ticks;
+static bool _erase_timer_flag;
+static uint32_t _target_ts;
+static uint32_t _now_ts;
+static uint32_t _paused_ts;
+static uint8_t _timer_work_round;
+static uint8_t _timer_full_round;
+static uint8_t _timer_run_state;
static inline void _inc_uint8(uint8_t *value, uint8_t step, uint8_t max) {
*value += step;