change the calibration charge start after all batteries are requested to start.

This commit is contained in:
atef 2024-01-10 16:30:12 +01:00
parent da5e8ea2d7
commit a1c31815ae
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class Battery48TlRecords
Temperature = records.Average(b => b.Temperatures.Cells.Average.Value),
HeatingPower = records.Sum(b => b.HeatingPower),
TimeSinceToc = records.Max(r => r.TimeSinceTOC),
CalibrationChargeRequested = records.Any(r => r.CalibrationChargeRequested),
CalibrationChargeRequested = records.All(r => r.CalibrationChargeRequested), // we changed this to All instead of Any, it's mean we wait for all batteries to reach the 14 days
Dc = new()
{