* fix message `ERR_DUPLICATE_INVERTER` #1705, #1700
@ -1,5 +1,8 @@
# Development Changes
## 0.8.130 - 2024-08-04
## 0.8.129 - 2024-07-11
* sort alarms ascending #1471
* fix alarm counter for first alarm
@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 129
#define VERSION_PATCH 130
typedef struct {
uint8_t ch;
@ -1120,7 +1120,7 @@ class RestApi {
Inverter<> *iv;
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((i != jsonIn[F("id")]) && (iv->config->serial.u64 == jsonIn[F("ser")])) {
jsonOut[F("error")] = F("ERR_DUPLICATE_INVERTER");