Update the state number on Select Control mode function

This commit is contained in:
atef 2023-08-10 13:04:07 +02:00
parent b47081204d
commit 8b159a6a2c
1 changed files with 1 additions and 1 deletions

View File

@ -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