Skip to content

Commit

Permalink
Add default empty dict for control variables
Browse files Browse the repository at this point in the history
  • Loading branch information
elcojacobs committed Dec 24, 2015
1 parent 2aea125 commit 8e3c951
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brewpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
cc = dict()

# Control variables (json string, sent directly to browser without decoding)
cv = ""
cv = "{}"

# listState = "", "d", "h", "dh" to reflect whether the list is up to date for installed (d) and available (h)
deviceList = dict(listState="", installed=[], available=[])
Expand Down Expand Up @@ -369,6 +369,7 @@ def resumeLogging():
# request settings from controller, processed later when reply is received
bg_ser.write('s') # request control settings cs
bg_ser.write('c') # request control constants cc
bg_ser.write('v') # request control variables cv
# answer from controller is received asynchronously later.

# create a listening socket to communicate with PHP
Expand Down

0 comments on commit 8e3c951

Please sign in to comment.