mr-manuel / venus-os_dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
https://mr-manuel.github.io/venus-os_dbus-serialbattery_docs/
MIT License
48 stars 18 forks source link

fix disconnection behavior #4

Closed transistorgit closed 1 year ago

transistorgit commented 1 year ago

fix https://github.com/Louisvdw/dbus-serialbattery/issues/193 in louisvdw/dbus-serialbattery/

now, when serial reads fail, all values are going to be reset to None after 10s. This will result in showing dashes "---" in the console. Further, after 60s the driver will be stopped and the console shows "not connected"

This prevents to overcharge or -discharge a battery with broken/disconnected BMS.