WIP
This commit is contained in:
parent
582dc91d71
commit
f55c31ae9d
@ -12,11 +12,14 @@ namespace floatpump {
|
||||
class Config_Store {
|
||||
public:
|
||||
Config_Store();
|
||||
|
||||
void saveToFlash();
|
||||
|
||||
void resetDefaults();
|
||||
|
||||
void loadFromFlash();
|
||||
|
||||
template <class T>
|
||||
template<class T>
|
||||
class Config_Object {
|
||||
public:
|
||||
Config_Object(T initialValue) : m_data(initialValue) {};
|
||||
@ -32,6 +35,7 @@ namespace floatpump {
|
||||
T *getLink() {
|
||||
return &m_data;
|
||||
}
|
||||
|
||||
private:
|
||||
T m_data;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user