From 5c635031686c345cfb44e5d956b36ff68cc6970f Mon Sep 17 00:00:00 2001 From: lumapu Date: Wed, 27 Apr 2022 23:10:22 +0200 Subject: [PATCH] * fixed #13, Inverter Type changed after reboot * fixed #11, WiFi password length limit increased to 63, check 802.11i spec: > A pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters. The limit of 63 comes from the desire to distinguish between a pass-phrase and a PSK displayed as 64 hexadecimal characters. --- tools/esp8266/app.cpp | 2 +- tools/esp8266/defines.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 63670a14..56ef1786 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -482,7 +482,7 @@ void app::saveValues(bool webSend = true) { // type mWeb->arg("inv" + String(i) + "Type").toCharArray(buf, 20); uint8_t type = atoi(buf); - mEep->write(ADDR_INV_TYPE + (i * MAX_NAME_LENGTH), type); + mEep->write(ADDR_INV_TYPE + i, type); } interval = mWeb->arg("invInterval").toInt(); diff --git a/tools/esp8266/defines.h b/tools/esp8266/defines.h index fa96dd02..80de9e02 100644 --- a/tools/esp8266/defines.h +++ b/tools/esp8266/defines.h @@ -25,7 +25,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 2 -#define VERSION_PATCH 9 +#define VERSION_PATCH 10 //------------------------------------- @@ -39,7 +39,7 @@ typedef struct { // EEPROM //------------------------------------- #define SSID_LEN 32 -#define PWD_LEN 32 +#define PWD_LEN 63 #define DEVNAME_LEN 16 #define CRC_LEN 2 // uint16_t