AP_BattMonitor: add override keyword where required

This commit is contained in:
Peter Barker 2018-11-07 21:57:38 +11:00 committed by Andrew Tridgell
parent 7e3ca19308
commit 8e30417c38
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public:
AP_BattMonitor_Analog(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params &params); AP_BattMonitor_Analog(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params &params);
/// Read the battery voltage and current. Should be called at 10hz /// Read the battery voltage and current. Should be called at 10hz
void read(); void read() override;
/// 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 has_current(); } bool has_consumed_energy() const override { return has_current(); }