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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user