Skip to content

Commit

Permalink
Add message to log for setting timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Apr 19, 2021
1 parent 23f408e commit 962ffd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brewpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,10 @@ def loop(): # Main program loop
_gravity = clamp(api['gravity'], Decimal(config['clampSGLower']), Decimal(config['clampSGUpper']))

# Capture interval to set timeout
timeoutiSpindel = round(api['interval'] * 3.5)
_timeout = round(api['interval'] * 3.5)
if not timeoutiSpindel == _timeout:
timeoutiSpindel = _timeout
logMessage("Setting iSpindel timeout to {} seconds".format(_timeout))
# Set time of last update
lastiSpindel = timestamp = time.time()

Expand Down

0 comments on commit 962ffd3

Please sign in to comment.