Browse Source

0.8.130

* fix message `ERR_DUPLICATE_INVERTER` #1705, #1700
pull/1692/merge
lumapu 2 months ago
parent
commit
ae5c9cdb9e
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 2
      src/web/RestApi.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes # Development Changes
## 0.8.130 - 2024-08-04
* fix message `ERR_DUPLICATE_INVERTER` #1705, #1700
## 0.8.129 - 2024-07-11 ## 0.8.129 - 2024-07-11
* sort alarms ascending #1471 * sort alarms ascending #1471
* fix alarm counter for first alarm * fix alarm counter for first alarm

2
src/defines.h

@ -13,7 +13,7 @@
//------------------------------------- //-------------------------------------
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_PATCH 129 #define VERSION_PATCH 130
//------------------------------------- //-------------------------------------
typedef struct { typedef struct {
uint8_t ch; uint8_t ch;

2
src/web/RestApi.h

@ -1120,7 +1120,7 @@ class RestApi {
Inverter<> *iv; Inverter<> *iv;
for(uint8_t i = 0; i < MAX_NUM_INVERTERS; i++) { for(uint8_t i = 0; i < MAX_NUM_INVERTERS; i++) {
iv = mSys->getInverterByPos(jsonIn[F("id")], true); iv = mSys->getInverterByPos(i, true);
if(nullptr != iv) { if(nullptr != iv) {
if((i != jsonIn[F("id")]) && (iv->config->serial.u64 == jsonIn[F("ser")])) { if((i != jsonIn[F("id")]) && (iv->config->serial.u64 == jsonIn[F("ser")])) {
jsonOut[F("error")] = F("ERR_DUPLICATE_INVERTER"); jsonOut[F("error")] = F("ERR_DUPLICATE_INVERTER");

Loading…
Cancel
Save