remove fake nullables from status record
This commit is contained in:
parent
4907654841
commit
9a400d992d
|
@ -130,15 +130,15 @@ internal static class Program
|
||||||
|
|
||||||
return new StatusRecord
|
return new StatusRecord
|
||||||
{
|
{
|
||||||
AcDc = acDc ?? AcDcDevicesRecord.Null,
|
AcDc = acDc ,
|
||||||
DcDc = dcDc ?? DcDcDevicesRecord.Null,
|
DcDc = dcDc ,
|
||||||
Battery = battery ?? Battery48TlRecords.Null,
|
Battery = battery ,
|
||||||
Relays = relays,
|
Relays = relays,
|
||||||
GridMeter = gridMeter,
|
GridMeter = gridMeter,
|
||||||
|
|
||||||
PvOnAcGrid = pvOnAcGrid,
|
PvOnAcGrid = pvOnAcGrid,
|
||||||
PvOnAcIsland = pvOnAcIsland,
|
PvOnAcIsland = pvOnAcIsland,
|
||||||
PvOnDc = pvOnDc ?? AmptStatus.Null,
|
PvOnDc = pvOnDc,
|
||||||
|
|
||||||
AcGridToAcIsland = new AcPowerDevice { Power = gridBusToIslandBusPower },
|
AcGridToAcIsland = new AcPowerDevice { Power = gridBusToIslandBusPower },
|
||||||
LoadOnAcGrid = new AcPowerDevice { Power = loadOnAcGrid },
|
LoadOnAcGrid = new AcPowerDevice { Power = loadOnAcGrid },
|
||||||
|
@ -212,9 +212,6 @@ internal static class Program
|
||||||
//await UploadCsv(record, t);
|
//await UploadCsv(record, t);
|
||||||
|
|
||||||
record.Config.Save();
|
record.Config.Save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"===========================================".LogInfo();
|
"===========================================".LogInfo();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue