some things where missing
This commit is contained in:
parent
b356054121
commit
fee5aec4d1
2 changed files with 5 additions and 3 deletions
|
@ -28,10 +28,12 @@ namespace fw
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
#elif defined(ESP8266)
|
||||||
|
return NO_ACTION;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ok_t Storage::setup_eeprom()
|
void Storage::setup_eeprom()
|
||||||
{
|
{
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
EEPROM.begin(this->eeprom_size);
|
EEPROM.begin(this->eeprom_size);
|
||||||
|
@ -58,6 +60,7 @@ namespace fw
|
||||||
return amount_of_rules;
|
return amount_of_rules;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "SPIFFS.h"
|
#include "SPIFFS.h"
|
||||||
#elif defined(ESP8266)
|
#elif defined(ESP8266)
|
||||||
#include "EEPROM.h"
|
#include "EEPROM.h"
|
||||||
#include "spiffs_api.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Utils.hpp"
|
#include "Utils.hpp"
|
||||||
|
@ -25,7 +24,7 @@ namespace fw
|
||||||
uint16_t eeprom_rules_head = 10;
|
uint16_t eeprom_rules_head = 10;
|
||||||
#endif
|
#endif
|
||||||
ok_t mount_spiffs();
|
ok_t mount_spiffs();
|
||||||
ok_t setup_eeprom();
|
void setup_eeprom();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint8_t retrieve_settings_value(const char *);
|
uint8_t retrieve_settings_value(const char *);
|
||||||
|
|
Reference in a new issue