manio / skymax-demo

https://skyboo.net/2017/03/monitoring-voltronic-power-axpert-mex-inverter-under-linux/
GNU General Public License v2.0
51 stars 29 forks source link

fix data not printed on oneshot run #21

Closed chadek closed 11 months ago

chadek commented 11 months ago

Sorry you merged so fast, by fixing the infinite loop on oneshot run, I introduced a bug for the one-shot option: loop thread exit right after querying; letting the main thread with no time to retrieve data stored in query buffer. Leaving after the sleep delay in the poll thread resolve the issue. Also I changed the ups_leave test to an else if to prevent an eventual leave without printing data.

I had in hands an inverter to test this out yesterday and it seams to work well now.

manio commented 11 months ago

Ok, thx :)