From 8b159a6a2cd0ecec382327993f0efd4114d6d5d2 Mon Sep 17 00:00:00 2001 From: atef Date: Thu, 10 Aug 2023 13:04:07 +0200 Subject: [PATCH] Update the state number on Select Control mode function --- csharp/App/SaliMax/src/Ess/Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/SaliMax/src/Ess/Controller.cs b/csharp/App/SaliMax/src/Ess/Controller.cs index 90ee95552..187212b67 100644 --- a/csharp/App/SaliMax/src/Ess/Controller.cs +++ b/csharp/App/SaliMax/src/Ess/Controller.cs @@ -15,7 +15,7 @@ public static class Controller { //return EssMode.OptimizeSelfConsumption; - return s.StateMachine.State != 16 ? EssMode.Off + return s.StateMachine.State != 23 ? EssMode.Off : s.MustHeatBatteries() ? EssMode.HeatBatteries : s.MustDoCalibrationCharge() ? EssMode.CalibrationCharge : s.MustReachMinSoc() ? EssMode.ReachMinSoc