some things where missing

This commit is contained in:
Florian Hoss 2022-04-24 13:29:54 +02:00
parent b356054121
commit fee5aec4d1
2 changed files with 5 additions and 3 deletions

View file

@ -28,10 +28,12 @@ namespace fw
};
}
return SUCCESS;
#elif defined(ESP8266)
return NO_ACTION;
#endif
}
ok_t Storage::setup_eeprom()
void Storage::setup_eeprom()
{
#ifdef ESP8266
EEPROM.begin(this->eeprom_size);
@ -58,6 +60,7 @@ namespace fw
return amount_of_rules;
return 0;
}
return 0;
#endif
}

View file

@ -6,7 +6,6 @@
#include "SPIFFS.h"
#elif defined(ESP8266)
#include "EEPROM.h"
#include "spiffs_api.h"
#endif
#include "Utils.hpp"
@ -25,7 +24,7 @@ namespace fw
uint16_t eeprom_rules_head = 10;
#endif
ok_t mount_spiffs();
ok_t setup_eeprom();
void setup_eeprom();
protected:
uint8_t retrieve_settings_value(const char *);