Change Calibration charge requested if any battery instead of all

This commit is contained in:
atef 2024-02-20 17:06:57 +01:00
parent 957d8061cc
commit a1abe91c97
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,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.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
CalibrationChargeRequested = records.Any(r => r.CalibrationChargeRequested), // we changed this to Any instead of All, it's mean we wait only one battery to reach the 14 days
Dc = new()
{