briandorey / mastervolt-soladin-600-solar-pv-inverter-esp32-interface

Mastervolt Soladin 600 to Wi-Fi interface using a ESP32 module to send solar pv data to a MQTT server
MIT License
2 stars 2 forks source link

Soladin.cpp error - nonvoid function #1

Open gewoonandre opened 1 year ago

gewoonandre commented 1 year ago

Hi!

I'm trying to make an old Soladin inverter smart 👍 Unfortuntely i got stuck when compiling/building the code from Visual Studio Code, using the PlatformIO plugin. I know the Soladin is old and this page isnt updated recently, but i would like to give it a try.

Error code copied below:

[{ "resource": "/c:/Users/Andre/Downloads/mastervolt-soladin-600/mastervolt-soladin-600-solar-pv-inverter-esp32-interface-main/firmware/Solar Inverter Wifi Interface copy/lib/SolaDin/Soladin.cpp", "owner": "cpp", "severity": 4, "message": "control reaches end of non-void function [-Wreturn-type]", "startLineNumber": 44, "startColumn": 1, "endLineNumber": 44, "endColumn": 1 }]control reaches end of non-void function [-Wreturn-type]

briandorey commented 1 year ago

I dont have the solardin inverter now so I cant test the code on the device but the error message indicates that the compiler is expecting a return value, there are examples on https://stackoverflow.com/questions/22742581/warning-control-reaches-end-of-non-void-function-wreturn-type which may fix the issue