diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index 82b9421..df4010a 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -746,7 +746,7 @@ bool WiFiConfig::_storeString(unsigned int start, size_t maxlen, String &string) WiFi.softAPmacAddress(mac); EEPROM.write(start, (uint8_t)top); // ulozime delku retezce (pouzite pr kontrolu pri vycitani) - for (i = start + 1; i < start + maxlen + 1; ++i) + for (i = start + 1; i < start + top + 1; ++i) { c = string[si]; c ^= mac[enciphidx];