Compare commits

..

No commits in common. "3539dae3a1aaa684a9228698b70eb556a4ad426a" and "707441d753eb9d62564ae6265db921586c27997a" have entirely different histories.

1 changed files with 3 additions and 3 deletions

View File

@ -507,7 +507,7 @@ public static class Topology
{
var e = pvOnAcIsland is not null? pvOnAcIsland?.Dc.Power.Value: 0;
var f = loadOnAcIsland is not null? loadOnAcIsland?.Ac.Power : 0;
var g = acDc ?.Ac.Power; // We don't check on the AcDc because this device is mandatory, if this does not exist the system will not start
var g = acDc ?.Ac.Power; // We dont check on the AcDc because this device is mandatory, if this does not exist the system will not start
if (e is null || f is null || g is null)
return null;
@ -519,9 +519,9 @@ public static class Topology
public static DcPowerDevice? CalculateDcLoad(AcDcDevicesRecord? acDc, AmptStatus? pvOnDc, DcDcDevicesRecord? dcDc)
{
var h = acDc?.Dc.Power; // We don't check on the AcDc because this device is mandatory
var h = acDc?.Dc.Power; // We dont check on the AcDc because this device is mandatory
var i = pvOnDc is not null? pvOnDc?.Dc.Power: 0;
var k = dcDc?.Dc.Link.Power; // We don't check on the DcDc because this device is mandatory
var k = dcDc?.Dc.Link.Power; // We dont check on the DcDc because this device is mandatory
if (h is null || i is null || k is null)
return null;