mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Merge branch 'fix-return' into common-final
This commit is contained in:
commit
c8dd2a6251
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Battery {
|
||||||
virtual void toggle_SOC_method() {}
|
virtual void toggle_SOC_method() {}
|
||||||
|
|
||||||
virtual void set_fake_voltage(float v) {}
|
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.
|
// This allows for battery specific SOC plausibility calculations to be performed.
|
||||||
virtual bool soc_plausible() { return true; }
|
virtual bool soc_plausible() { return true; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue