diff --git a/src/CHANGES.md b/src/CHANGES.md index 8bdd6c40..34ced30b 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,7 +1,8 @@ # Development Changes ## 0.8.120 - 2024-05-18 -* fix crash if invalid serial number was set +* fix crash if invalid serial number was set -> inverter will be disabled automatically +* improved and fixed factory image generation ## 0.8.119 - 2024-05-17 * fix reset values at midnight if WiFi isn't available #1620 diff --git a/src/hm/hmSystem.h b/src/hm/hmSystem.h index e6274696..cb4103bd 100644 --- a/src/hm/hmSystem.h +++ b/src/hm/hmSystem.h @@ -74,7 +74,7 @@ class HmSystem { iv->ivRadioType = INV_RADIO_TYPE_CMT; } else if(iv->config->serial.u64 != 0ULL) { DPRINTLN(DBG_ERROR, F("inverter type can't be detected!")); - iv->config = nullptr; + iv->config->enabled = false; return; } else iv->ivGen = IV_UNKNOWN; diff --git a/src/platformio.ini b/src/platformio.ini index 9f226af0..30436414 100644 --- a/src/platformio.ini +++ b/src/platformio.ini @@ -23,7 +23,7 @@ extra_scripts = pre:../scripts/convertHtml.py pre:../scripts/applyPatches.py pre:../scripts/reduceGxEPD2.py - #post:../scripts/add_littlefs_binary.py + post:../scripts/add_littlefs_binary.py lib_deps = https://github.com/esphome/ESPAsyncWebServer @ ^3.2.0