Do not try to send bed temp on API if not available

This commit is contained in:
Gina Häußge committed 2014-03-09 13:43:59 +01:00
1 parent f3ee2d2bfd
commit 2be05d4f9a
1 file changed
+6 -5
+6 -5
View File
@@ -613,11 +613,12 @@ class Printer():
"target": self._temp[tool][1],
"offset": tempOffset[tool] if tool in tempOffset.keys() and tempOffset[tool] is not None else 0
}
result["bed"] = {
"actual": self._bedTemp[0],
"target": self._bedTemp[1],
"offset": bedTempOffset
}
if self._bedTemp is not None:
result["bed"] = {
"actual": self._bedTemp[0],
"target": self._bedTemp[1],
"offset": bedTempOffset
}
return result