OpenSourceEBike / TSDZ2-Smart-EBike

Flexible OpenSource firmware for TongSheng TSDZ2 mid drive ebike motor
GNU General Public License v3.0
251 stars 130 forks source link

Data loss on battery disconnect without turning off first #143

Open palm369 opened 3 years ago

palm369 commented 3 years ago

At least the value for used battery wh is lost when you turn off the power without turning off the display (SW102) first.

I suggest saving the data to eeprom every time they change.