ned-kelly / docker-voltronic-homeassistant

Programmatically read data from your Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc Inverter and send it to Home Assistant via MQTT - Works with RS232 & USB!
GNU General Public License v3.0
257 stars 140 forks source link

inverter-cli/mail.cpp: align the implementation to the protocol #72

Open dilyanpalauzov opened 2 years ago

dilyanpalauzov commented 2 years ago

The HS_MS_MSX protocol specification in the repository says for the

QPIRI command value R is “Parallel max num”.

On my system R returns 9, while the source code expected "-" in scanf().

This change alters the input of scanf() to accept any character in the position for R.

Closes https://github.com/ned-kelly/docker-voltronic-homeassistant/issues/71