From a1c31815ae8a3aca3d18197a366cbf5c44ea5f16 Mon Sep 17 00:00:00 2001 From: atef Date: Wed, 10 Jan 2024 16:30:12 +0100 Subject: [PATCH] change the calibration charge start after all batteries are requested to start. --- csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs b/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs index 7053f295e..b4e96aaad 100644 --- a/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs +++ b/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs @@ -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() {