1
0
forked from me/IronOS

Use settings desc by indexing instead of direct pointer

This commit is contained in:
Alvin Wong
2021-04-06 17:24:57 +08:00
parent 4810a67e2e
commit 09a58f6f48
3 changed files with 17 additions and 15 deletions

View File

@@ -21,7 +21,9 @@
// Struct for holding the function pointers and descriptions
typedef struct {
const char *description;
// The settings description index, please use the `SETTINGS_DESC` macro with
// the `SettingsItemIndex` enum. Use 0 for no description.
uint8_t description;
// return true if increment reached the maximum value
bool (*const incrementHandler)(void);
bool (*const draw)(void);