1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

Finish XDR formatter, fix battery page for low currents

This commit is contained in:
norbert-walter
2022-04-13 20:54:17 +02:00
parent 52246b287a
commit 9cd2c24cab
2 changed files with 126 additions and 10 deletions

View File

@@ -130,6 +130,7 @@ public:
if(batPercentage > 99) batPercentage = 99;
// Battery range calculation
if(value2 <= 0) value2 = 0.0000001; // Limiting current
batRange = batCapacity * batPercentage / 100 / value2;
// Limits for battery range
if(batRange < 0) batRange = 0;