From 7055abc269de8bb3a70e90931e0ecbe03671f24a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 12 Aug 2023 16:15:54 +1000 Subject: [PATCH] AP_BattMonitor: fixed reset_remaining() for INAxxx and LTC2946 these can use the generic reset_remaining() call in the backend --- libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h | 1 - libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h | 1 - 2 files changed, 2 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h b/libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h index 096cc715c6..d70f963187 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h @@ -23,7 +23,6 @@ public: bool has_cell_voltages() const override { return false; } bool has_temperature() const override { return false; } bool has_current() const override { return true; } - bool reset_remaining(float percentage) override { return false; } bool get_cycle_count(uint16_t &cycles) const override { return false; } void init(void) override; diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h b/libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h index c3497e9df8..aa13b75d7e 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h @@ -18,7 +18,6 @@ public: bool has_cell_voltages() const override { return false; } bool has_temperature() const override { return false; } bool has_current() const override { return true; } - bool reset_remaining(float percentage) override { return false; } bool get_cycle_count(uint16_t &cycles) const override { return false; } virtual void init(void) override;