BugFix v _storeString (zapis za povolenou oblast)

This commit is contained in:
Pavel Brychta 2018-07-24 12:48:43 +02:00
parent f5fce8dee3
commit 33f8f6a8b8

View File

@ -746,7 +746,7 @@ bool WiFiConfig::_storeString(unsigned int start, size_t maxlen, String &string)
WiFi.softAPmacAddress(mac); WiFi.softAPmacAddress(mac);
EEPROM.write(start, (uint8_t)top); // ulozime delku retezce (pouzite pr kontrolu pri vycitani) 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 = string[si];
c ^= mac[enciphidx]; c ^= mac[enciphidx];