This commit is contained in:
Robin Dietzel 2023-01-06 14:08:38 +01:00
parent 582dc91d71
commit f55c31ae9d

View File

@ -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;
};