faces/tally: make mtg presets optin via macros

Use preprocessor macros to conditionally compile in Magic the Gathering
initial value presets for the tally mark, thereby making them opt in.
This commit is contained in:
Matheus Afonso Martins Moreira 2024-09-08 18:38:53 -03:00
parent 137906e14a
commit 531bcfd285

View file

@ -32,7 +32,17 @@
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) {