mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-30 18:56:27 +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
|
# Development Changes
|
||||||
|
|
||||||
|
## 0.8.120 - 2024-05-18
|
||||||
|
* fix crash if invalid serial number was set
|
||||||
|
|
||||||
## 0.8.119 - 2024-05-17
|
## 0.8.119 - 2024-05-17
|
||||||
* fix reset values at midnight if WiFi isn't available #1620
|
* fix reset values at midnight if WiFi isn't available #1620
|
||||||
* fix typo in English versions
|
* fix typo in English versions
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_PATCH 119
|
#define VERSION_PATCH 120
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t ch;
|
uint8_t ch;
|
||||||
|
|
|
@ -74,6 +74,7 @@ class HmSystem {
|
||||||
iv->ivRadioType = INV_RADIO_TYPE_CMT;
|
iv->ivRadioType = INV_RADIO_TYPE_CMT;
|
||||||
} else if(iv->config->serial.u64 != 0ULL) {
|
} else if(iv->config->serial.u64 != 0ULL) {
|
||||||
DPRINTLN(DBG_ERROR, F("inverter type can't be detected!"));
|
DPRINTLN(DBG_ERROR, F("inverter type can't be detected!"));
|
||||||
|
iv->config = nullptr;
|
||||||
return;
|
return;
|
||||||
} else
|
} else
|
||||||
iv->ivGen = IV_UNKNOWN;
|
iv->ivGen = IV_UNKNOWN;
|
||||||
|
@ -116,6 +117,8 @@ class HmSystem {
|
||||||
DPRINTLN(DBG_VERBOSE, F("hmSystem.h:getInverterByPos"));
|
DPRINTLN(DBG_VERBOSE, F("hmSystem.h:getInverterByPos"));
|
||||||
if(pos >= MAX_INVERTER)
|
if(pos >= MAX_INVERTER)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
else if(nullptr == mInverter[pos].config)
|
||||||
|
return nullptr;
|
||||||
else if((mInverter[pos].config->serial.u64 != 0ULL) || (false == check))
|
else if((mInverter[pos].config->serial.u64 != 0ULL) || (false == check))
|
||||||
return &mInverter[pos];
|
return &mInverter[pos];
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue