AP_BattMonitor: FuelLevel_Ananlog: set has_current true so capacity is reported

This commit is contained in:
Iampete1 2024-05-19 14:04:17 +01:00 committed by Andrew Tridgell
parent b91544bf05
commit 44bd77d49e

View File

@ -40,8 +40,8 @@ public:
// returns true if battery monitor provides consumed energy info // returns true if battery monitor provides consumed energy info
bool has_consumed_energy() const override { return true; } bool has_consumed_energy() const override { return true; }
// returns true if battery monitor provides current info // returns true if battery monitor provides current info (or capacity)
bool has_current() const override { return false; } bool has_current() const override { return true; }
void init(void) override {} void init(void) override {}