Change Calibration charge requested if any battery instead of all
This commit is contained in:
parent
957d8061cc
commit
a1abe91c97
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue