diff --git a/src/unit/unit_ADS1115.hpp b/src/unit/unit_ADS1115.hpp index 5387bd6..61f3dc0 100644 --- a/src/unit/unit_ADS1115.hpp +++ b/src/unit/unit_ADS1115.hpp @@ -73,8 +73,8 @@ class UnitAVmeterBase : public UnitADS1115 { virtual ~UnitAVmeterBase() { } - virtual bool begin(); - + virtual bool begin() override; + inline float calibrationFactor() const { return _calibrationFactor; } diff --git a/src/unit/unit_ADS111x.hpp b/src/unit/unit_ADS111x.hpp index 6f6c59c..b57795b 100644 --- a/src/unit/unit_ADS111x.hpp +++ b/src/unit/unit_ADS111x.hpp @@ -245,7 +245,7 @@ class UnitADS111x : public Component, public PeriodicMeasurementAdapter