From ca3c9d2903b02c8e45af7e48c4540c6203f9d923 Mon Sep 17 00:00:00 2001 From: Noe Date: Mon, 11 Mar 2024 16:10:47 +0100 Subject: [PATCH] update config types in controller --- csharp/App/SaliMax/src/Ess/Controller.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/csharp/App/SaliMax/src/Ess/Controller.cs b/csharp/App/SaliMax/src/Ess/Controller.cs index 1860df8d6..b85601d1c 100644 --- a/csharp/App/SaliMax/src/Ess/Controller.cs +++ b/csharp/App/SaliMax/src/Ess/Controller.cs @@ -190,13 +190,13 @@ public static class Controller var calibrationChargeForced = statusRecord.Config.ForceCalibrationCharge; var batteryCalibrationChargeRequested = statusRecord.Battery is { CalibrationChargeRequested: true };//BatteryCalibrationChargeRequested(statusRecord.Battery?.CalibrationChargeRequested?? false) ; - var mustDoCalibrationCharge = batteryCalibrationChargeRequested || calibrationChargeForced == CalibrationChargeType.Yes || calibrationChargeForced == CalibrationChargeType.UntilEoc ; + var mustDoCalibrationCharge = batteryCalibrationChargeRequested || calibrationChargeForced == CalibrationChargeType.ChargePermanently || calibrationChargeForced == CalibrationChargeType.AdditionallyOnce ; if (statusRecord.Battery is not null) { - if (calibrationChargeForced == CalibrationChargeType.UntilEoc && statusRecord.Battery.Eoc ) + if (calibrationChargeForced == CalibrationChargeType.AdditionallyOnce && statusRecord.Battery.Eoc ) { - statusRecord.Config.ForceCalibrationCharge = CalibrationChargeType.No; + statusRecord.Config.ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery; } } return mustDoCalibrationCharge;