mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
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:
parent
137906e14a
commit
531bcfd285
|
@ -32,7 +32,17 @@
|
||||||
|
|
||||||
static bool _init_val;
|
static bool _init_val;
|
||||||
static bool _quick_ticks_running;
|
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);
|
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) {
|
void tally_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
|
||||||
|
|
Loading…
Reference in a new issue