File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ struct Sensorbox {
596596 uint8_t WiFiAPSTA ; // 0:no portal / 1: portal active
597597 uint8_t WIFImode ; // 0:Wifi Off / 1:WiFi On / 2: Portal Start
598598 uint8_t IP [4 ];
599- uint8_t APpassword [8 ];
599+ uint8_t APpassword [9 ]; // 8 characters + null termination
600600};
601601
602602#define EPOCH2_OFFSET 1672531200
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ uint8_t Meter::receiveCurrentMeasurement(uint8_t *buf) {
198198 for (x = 0 ; x < 8 ; x++) {
199199 SB2.APpassword [7 -x] = buf[56 + x];
200200 }
201+ SB2.APpassword [8 ] = ' \0 ' ;
201202
202203 if (SB2_WIFImode == 2 && SB2.WiFiConnected && !SubMenu) {
203204 SB2_WIFImode = 1 ; // Portal active and connected? Switch back to Enabled.
You can’t perform that action at this time.
0 commit comments