From 33f8f6a8b8db434f1f7984c3b80cd0ec63b2d5ee Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 24 Jul 2018 12:48:43 +0200 Subject: [PATCH] BugFix v _storeString (zapis za povolenou oblast) --- src/WiFiConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];