From a1abe91c975c144bb98865e5bf9a1911d139e8e6 Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 20 Feb 2024 17:06:57 +0100 Subject: [PATCH] Change Calibration charge requested if any battery instead of all --- 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 a59f34e22..90c172e91 100644 --- a/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs +++ b/csharp/Lib/Devices/Battery48TL/Battery48TlRecords.cs @@ -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() {