From d56abb49500d89b631703a2e99a864ff968a95e9 Mon Sep 17 00:00:00 2001 From: atef Date: Thu, 5 Oct 2023 12:53:38 +0200 Subject: [PATCH] take off the space between the Serial Number --- csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs b/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs index ec8bdf9e7..29a35e283 100644 --- a/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs +++ b/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs @@ -20,7 +20,7 @@ public partial class Battery48TlRecord public Boolean Eoc => Leds is { Green: On, Amber: Off, Blue : Off }; - public String SerialNumber => $"{_SerialNum1:X4} {_SerialNum2:X4} {_SerialNum3:X4} {_SerialNum4:X4}".TrimStart('0'); + public String SerialNumber => $"{_SerialNum1:X4}{_SerialNum2:X4}{_SerialNum3:X4}{_SerialNum4:X4}".TrimEnd('0'); public String FwVersion => _FwVersion.ToString("X4"); public Strings Warnings => ParseWarnings().OrderBy(w => w).ToList(); @@ -219,5 +219,4 @@ public partial class Battery48TlRecord return Math.Min(pLimit, 0); } } -} - +} \ No newline at end of file