]> git.earman.xyz Git - sensor-watch.git/commitdiff
faces/tally: make mtg presets optin via macros
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sun, 8 Sep 2024 21:38:53 +0000 (18:38 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sun, 8 Sep 2024 21:38:53 +0000 (18:38 -0300)
Use preprocessor macros to conditionally compile in Magic the Gathering
initial value presets for the tally mark, thereby making them opt in.

movement/watch_faces/complication/tally_face.c

index 3893fc74d2a20aec1ba0d18269fa7094456c9827..fb44df2216663b7b0ff109e7d0bfdc1684d2bf51 100644 (file)
 
 static bool _init_val;
 static bool _quick_ticks_running;
-static const int16_t _tally_default[] = {0, 100, 40, 20, 10};
+
+static const int16_t _tally_default[] = {
+    0,
+
+#ifdef TALLY_FACE_PRESETS_MTG
+    20,
+    40,
+#endif /* TALLY_FACE_PRESETS_MTG */
+
+};
+
 static const uint8_t _tally_default_size = sizeof(_tally_default) / sizeof(int16_t);
 
 void tally_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {