diff --git a/ESPFirewall/lib/Firewall/src/Storage.cpp b/ESPFirewall/lib/Firewall/src/Storage.cpp index bbe0030..e06b495 100644 --- a/ESPFirewall/lib/Firewall/src/Storage.cpp +++ b/ESPFirewall/lib/Firewall/src/Storage.cpp @@ -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 } diff --git a/ESPFirewall/lib/Firewall/src/Storage.hpp b/ESPFirewall/lib/Firewall/src/Storage.hpp index 88ffecf..a86726d 100644 --- a/ESPFirewall/lib/Firewall/src/Storage.hpp +++ b/ESPFirewall/lib/Firewall/src/Storage.hpp @@ -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 *);