diff --git a/SmartEVSE-3/src/glcd.cpp b/SmartEVSE-3/src/glcd.cpp index c40a426b..e6f1f19b 100644 --- a/SmartEVSE-3/src/glcd.cpp +++ b/SmartEVSE-3/src/glcd.cpp @@ -1049,7 +1049,7 @@ uint8_t getMenuItems (void) { MenuItems[m++] = MENU_MAINSMETER; // - - Type of Mains electric meter (0: Disabled / Constants EM_*) if (MainsMeter.Type == EM_SENSORBOX) { // - - ? Sensorbox? if (GridActive == 1) MenuItems[m++] = MENU_GRID; - if (SB2.SoftwareVer >= 0x01) { + if (SB2.SoftwareVer == 0x01) { MenuItems[m++] = MENU_SB2_WIFI; // Sensorbox-2 Wifi 0:Disabled / 1:Enabled / 2:Portal } } else if (MainsMeter.Type && MainsMeter.Type != EM_API) { // - - ? Other? diff --git a/SmartEVSE-3/src/meter.cpp b/SmartEVSE-3/src/meter.cpp index 0ffa7bb5..e3e13f6e 100644 --- a/SmartEVSE-3/src/meter.cpp +++ b/SmartEVSE-3/src/meter.cpp @@ -184,7 +184,7 @@ uint8_t Meter::receiveCurrentMeasurement(uint8_t *buf) { SB2.SoftwareVer = buf[0]; // Make sure the version and datalength are correct before processing the data. // the version alone does not indicate that we have read the extended registers. - if (SB2.SoftwareVer >= 1 && MB.DataLength == 64) { + if (SB2.SoftwareVer == 1 && MB.DataLength == 64) { // Read Status, IP, AP Password from Sensorbox SB2.WiFiConnected = buf[40]>>1 & 1; SB2.WiFiAPSTA = buf[40]>>2 & 1;