Fix initial temperatureHistory load not containing any data

This commit is contained in:
Bryan Mayland committed 2013-07-09 14:54:32 -04:00
1 parent c33c32410b
commit 7d51b32476
1 file changed
+3 -1
+3 -1
View File
@@ -303,8 +303,10 @@ class Printer():
def _sendInitialStateUpdate(self, callback):
try:
data = self._stateMonitor.getCurrentData()
# convert the dict of deques to a dict of lists
temps = {k: list(v) for (k,v) in self._temps.iteritems()}
data.update({
"temperatureHistory": list(self._temps),
"temperatureHistory": temps,
"logHistory": list(self._log),
"messageHistory": list(self._messages)
})