Skip to content

Commit

Permalink
Use getMaxAmpsToDivideAmongSlaves() if getTotalAmpsInUse() lags behind
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed May 31, 2023
1 parent 9fad98b commit fd554e3
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 @@ -659,7 +659,7 @@ def getMaxAmpsToDivideGreenEnergy(self):
return round(amps, 2)

def getMaxAmpsToDivideFromGrid(self):
currentOffer = min(
currentOffer = max(
self.getTotalAmpsInUse(),
self.getMaxAmpsToDivideAmongSlaves(),
)
Expand Down

0 comments on commit fd554e3

Please sign in to comment.