I'm having trouble compiling for the ME3000 and getting the above message and the last line of this part of the sketch highlighted;
unsigned int batteryWatts() { if (INVERTER_RUNNINGSTATE == charging || INVERTER_RUNNINGSTATE == discharging) { modbusResponce responce = sendModbus(getBatteryPower, sizeof(getBatteryPower)); if (responce.errorLevel == 0) { unsigned int w = ((responce.data[0] << 8) | responce.data[1]); switch (INVERTER_RUNNINGSTATE) { case charging: w = w * 10; break; case discharging: w = (65535 - w) * 10; break; return w; } } else { Serial.println(responce.errorMessage); updateOLED("NULL", "NULL", "CRC-FAULT", "NULL"); } } else { return 0; } } HERE
I'm having trouble compiling for the ME3000 and getting the above message and the last line of this part of the sketch highlighted;
unsigned int batteryWatts() { if (INVERTER_RUNNINGSTATE == charging || INVERTER_RUNNINGSTATE == discharging) { modbusResponce responce = sendModbus(getBatteryPower, sizeof(getBatteryPower)); if (responce.errorLevel == 0) { unsigned int w = ((responce.data[0] << 8) | responce.data[1]); switch (INVERTER_RUNNINGSTATE) { case charging: w = w * 10; break; case discharging: w = (65535 - w) * 10; break; return w; } } else { Serial.println(responce.errorMessage); updateOLED("NULL", "NULL", "CRC-FAULT", "NULL"); } } else { return 0; } } HERE