INA219 charging detection

minimal implementation: if there is a configured INA219 sensor for battery monitoring we can take the current flow across the shunt resistor to know if we are charging the battery - negative milliamps indicate charging
This commit is contained in:
nebman 2024-11-02 00:46:26 +01:00 committed by Tom Fifield
parent baa56cce89
commit ecf87fd184
2 changed files with 2 additions and 2 deletions

View File

@ -1176,4 +1176,4 @@ bool Power::lipoInit()
{ {
return false; return false;
} }
#endif #endif

View File

@ -24,4 +24,4 @@ class INA219Sensor : public TelemetrySensor, VoltageSensor, CurrentSensor
virtual int16_t getCurrentMa() override; virtual int16_t getCurrentMa() override;
}; };
#endif #endif