Compare commits
2 Commits
707441d753
...
3539dae3a1
Author | SHA1 | Date |
---|---|---|
atef | 3539dae3a1 | |
atef | cb25425f51 |
|
@ -507,7 +507,7 @@ public static class Topology
|
||||||
{
|
{
|
||||||
var e = pvOnAcIsland is not null? pvOnAcIsland?.Dc.Power.Value: 0;
|
var e = pvOnAcIsland is not null? pvOnAcIsland?.Dc.Power.Value: 0;
|
||||||
var f = loadOnAcIsland is not null? loadOnAcIsland?.Ac.Power : 0;
|
var f = loadOnAcIsland is not null? loadOnAcIsland?.Ac.Power : 0;
|
||||||
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
|
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
|
||||||
|
|
||||||
if (e is null || f is null || g is null)
|
if (e is null || f is null || g is null)
|
||||||
return null;
|
return null;
|
||||||
|
@ -519,9 +519,9 @@ public static class Topology
|
||||||
|
|
||||||
public static DcPowerDevice? CalculateDcLoad(AcDcDevicesRecord? acDc, AmptStatus? pvOnDc, DcDcDevicesRecord? dcDc)
|
public static DcPowerDevice? CalculateDcLoad(AcDcDevicesRecord? acDc, AmptStatus? pvOnDc, DcDcDevicesRecord? dcDc)
|
||||||
{
|
{
|
||||||
var h = acDc?.Dc.Power; // We dont check on the AcDc because this device is mandatory
|
var h = acDc?.Dc.Power; // We don't check on the AcDc because this device is mandatory
|
||||||
var i = pvOnDc is not null? pvOnDc?.Dc.Power: 0;
|
var i = pvOnDc is not null? pvOnDc?.Dc.Power: 0;
|
||||||
var k = dcDc?.Dc.Link.Power; // We dont check on the DcDc because this device is mandatory
|
var k = dcDc?.Dc.Link.Power; // We don't check on the DcDc because this device is mandatory
|
||||||
|
|
||||||
if (h is null || i is null || k is null)
|
if (h is null || i is null || k is null)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue