Skip to content

Commit

Permalink
fix for multiple chargers (Issue #4)
Browse files Browse the repository at this point in the history
applied fix for multiple chargers per flodorn's pull request upstream
  • Loading branch information
ngardiner authored Sep 12, 2019
1 parent 18b5d08 commit 7937661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TWCManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,10 @@ def receive_slave_heartbeat(self, heartbeatData):
str(int(now - self.timeReportedAmpsActualChangedSignificantly)) +
' < 60 or self.reportedAmpsActual ' + str(self.reportedAmpsActual) +
' < 4')
desiredAmpsOffered = minAmpsToOffer
if(maxAmpsToDivideAmongSlaves < 1):
desiredAmosOffered = 0
else:
desiredAmpsOffered = minAmpsToOffer
else:
# We can tell the TWC how much power to use in 0.01A increments, but
# the car will only alter its power in larger increments (somewhere
Expand Down

0 comments on commit 7937661

Please sign in to comment.