- preliminary fix for #1940 (if calculated voltage is under 0, we set it to 1%)

This commit is contained in:
Andy Rozman 2019-08-07 11:59:47 +01:00
parent d06c5fdcc8
commit 163c043492

View file

@ -27,6 +27,9 @@ public class BatteryStatusDTO {
int percentInt = (int) (percent * 100.0d);
if (percentInt<0)
percentInt = 1;
if (percentInt > 100)
percentInt = 100;