Skip to content

Commit

Permalink
Use getMaxAmpsToDivideAmongSlaves() if getTotalAmpsInUse() is not ava…
Browse files Browse the repository at this point in the history
…ilable
  • Loading branch information
RichieB2B committed Mar 5, 2024
1 parent 268b601 commit c212707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TWCManager/TWCMaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def getMaxAmpsToDivideFromGrid(self):
currentOffer = min(
self.getTotalAmpsInUse(),
self.getMaxAmpsToDivideAmongSlaves(),
)
) if self.getTotalAmpsInUse() > 0 else self.getMaxAmpsToDivideAmongSlaves()

# Get consumptions in Amps, if the EMS source supports it
consumptionA = float(self.getConsumptionAmps())
Expand Down

0 comments on commit c212707

Please sign in to comment.