Add missing return statement

This commit is contained in:
Jaakko Haakana 2025-06-09 22:53:11 +03:00
parent 74591cd9a2
commit a20bd74122

View file

@ -44,7 +44,7 @@ class Battery {
virtual void toggle_SOC_method() {}
virtual void set_fake_voltage(float v) {}
virtual float get_voltage() { static_cast<float>(datalayer.battery.status.voltage_dV) / 10.0; }
virtual float get_voltage() { return static_cast<float>(datalayer.battery.status.voltage_dV) / 10.0; }
// This allows for battery specific SOC plausibility calculations to be performed.
virtual bool soc_plausible() { return true; }