increase storage

This commit is contained in:
Florian Hoss 2022-05-02 20:49:05 +02:00
parent 84991434ec
commit 09a04b60a9
2 changed files with 20 additions and 25 deletions

View file

@ -18,16 +18,15 @@ namespace fw
#ifdef ESP32
Preferences memory;
#elif defined(ESP8266)
// Storage per firewall rule is 34 Byte
// Space for 15 Rules is 510 Byte
// Storage per firewall rule is 42 Byte
// Space for 15 Rules is 630 Byte
// plus 10 byte for settings
const uint16_t eeprom_size = 520;
const uint16_t eeprom_size = 640;
const uint8_t security_number = 93;
const uint16_t eeprom_settings_head = 0;
const uint16_t eeprom_amout_of_rules_head = eeprom_settings_head + 1;
const uint16_t eeprom_rules_head = 10;
#endif
ok_t mount_spiffs();
void setup_eeprom();
uint16_t eeprom_rule_position(uint8_t);