mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 02:06:21 +02:00
0.8.120
* fix crash if invalid serial number was set
This commit is contained in:
parent
810d36c341
commit
437173854f
3 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
# Development Changes
|
||||
|
||||
## 0.8.120 - 2024-05-18
|
||||
* fix crash if invalid serial number was set
|
||||
|
||||
## 0.8.119 - 2024-05-17
|
||||
* fix reset values at midnight if WiFi isn't available #1620
|
||||
* fix typo in English versions
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 8
|
||||
#define VERSION_PATCH 119
|
||||
#define VERSION_PATCH 120
|
||||
//-------------------------------------
|
||||
typedef struct {
|
||||
uint8_t ch;
|
||||
|
|
|
@ -74,6 +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;
|
||||
return;
|
||||
} else
|
||||
iv->ivGen = IV_UNKNOWN;
|
||||
|
@ -116,6 +117,8 @@ class HmSystem {
|
|||
DPRINTLN(DBG_VERBOSE, F("hmSystem.h:getInverterByPos"));
|
||||
if(pos >= MAX_INVERTER)
|
||||
return nullptr;
|
||||
else if(nullptr == mInverter[pos].config)
|
||||
return nullptr;
|
||||
else if((mInverter[pos].config->serial.u64 != 0ULL) || (false == check))
|
||||
return &mInverter[pos];
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue