From 4f8e82f9884c2e3e88fbfff1ef2465862641146b Mon Sep 17 00:00:00 2001 From: David Beechey Date: Mon, 10 Jun 2024 21:49:55 +0100 Subject: [PATCH] fix formatting (again) --- lib/sensors/inverter_current.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sensors/inverter_current.cpp b/lib/sensors/inverter_current.cpp index 1a5209dd..fb1abdb6 100644 --- a/lib/sensors/inverter_current.cpp +++ b/lib/sensors/inverter_current.cpp @@ -44,7 +44,8 @@ std::optional InverterCurrent::readCurrent() const int inverter_current_voltage = *inverter_current * (MAX_VOLTAGE - virtual_ground) + virtual_ground; const core::Float current - = inverter_current_voltage * ((MAX_CURRENT - MIN_CURRENT) / (MAX_VOLTAGE - MIN_VOLTAGE)) + MIN_CURRENT; + = inverter_current_voltage * ((MAX_CURRENT - MIN_CURRENT) / (MAX_VOLTAGE - MIN_VOLTAGE)) + + MIN_CURRENT; const core::Float reference_voltage_biased = reference_voltage + virtual_ground; const core::Float current_difference = current - reference_voltage_biased; return current_difference;