eeprom space for 15 rules

This commit is contained in:
Florian Hoss 2022-04-24 16:58:08 +02:00
parent c8822d79b5
commit 221a2f45bd

View file

@ -18,7 +18,10 @@ namespace fw
#ifdef ESP32
Preferences memory;
#elif defined(ESP8266)
const uint16_t eeprom_size = 1000;
// Storage per firewall rule is 34 Byte
// Space for 15 Rules is 510 Byte
// plus 10 byte for settings
const uint16_t eeprom_size = 520;
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;