From 9a400d992d4a8b5547bf04b2e78983ba1be245ad Mon Sep 17 00:00:00 2001 From: ig Date: Fri, 25 Aug 2023 17:18:26 +0200 Subject: [PATCH] remove fake nullables from status record --- csharp/App/SaliMax/src/Program.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 92e3bae52..00ae8f790 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -130,15 +130,15 @@ internal static class Program return new StatusRecord { - AcDc = acDc ?? AcDcDevicesRecord.Null, - DcDc = dcDc ?? DcDcDevicesRecord.Null, - Battery = battery ?? Battery48TlRecords.Null, + AcDc = acDc , + DcDc = dcDc , + Battery = battery , Relays = relays, GridMeter = gridMeter, PvOnAcGrid = pvOnAcGrid, PvOnAcIsland = pvOnAcIsland, - PvOnDc = pvOnDc ?? AmptStatus.Null, + PvOnDc = pvOnDc, AcGridToAcIsland = new AcPowerDevice { Power = gridBusToIslandBusPower }, LoadOnAcGrid = new AcPowerDevice { Power = loadOnAcGrid }, @@ -212,9 +212,6 @@ internal static class Program //await UploadCsv(record, t); record.Config.Save(); - - - "===========================================".LogInfo();