Backport some master changes
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "Settings.h"
|
||||
#include "BSP.h"
|
||||
|
||||
#define PRESS_ACCEL_STEP 3
|
||||
#define PRESS_ACCEL_STEP 30
|
||||
#define PRESS_ACCEL_INTERVAL_MIN 100
|
||||
#define PRESS_ACCEL_INTERVAL_MAX 300
|
||||
|
||||
@@ -19,16 +19,12 @@
|
||||
|
||||
//Declarations for all the methods for the settings menu (at end of this file)
|
||||
|
||||
//Wrapper for holding a function pointer
|
||||
typedef struct state_func_t {
|
||||
void (*func)(void);
|
||||
} state_func;
|
||||
|
||||
//Struct for holding the function pointers and descriptions
|
||||
typedef struct {
|
||||
const char *description;
|
||||
const state_func incrementHandler;
|
||||
const state_func draw;
|
||||
// return true if increment reached the maximum value
|
||||
bool (* const incrementHandler)(void);
|
||||
void (* const draw)(void);
|
||||
} menuitem;
|
||||
|
||||
void enterSettingsMenu();
|
||||
|
||||
Reference in New Issue
Block a user