From 4572dd3d6c8e6d4bb365cf922d9d2daa0587f2e1 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Fri, 3 Jun 2022 12:22:04 +0300 Subject: [PATCH] ina219: we already know the type --- code/espurna/sensors/INA219Sensor.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/code/espurna/sensors/INA219Sensor.h b/code/espurna/sensors/INA219Sensor.h index 05c3e74d..e2c5e775 100644 --- a/code/espurna/sensors/INA219Sensor.h +++ b/code/espurna/sensors/INA219Sensor.h @@ -482,18 +482,6 @@ public: return String(buffer); } - String description(unsigned char index) const override { - if (index == 0) { - return F("Battery voltage"); - } else if (index == 1) { - return F("Current"); - } else if (index == 2) { - return F("Power"); - } - - return description(); - } - unsigned char type(unsigned char index) const override { if (index < std::size(Magnitudes)) { return Magnitudes[index].type;