Merge branch 'devel' of github.com:foosel/OctoPrint into devel

This commit is contained in:
Gina Häußge 2014-03-22 22:39:38 +01:00
commit 22614f09a0
2 changed files with 16 additions and 6 deletions

9
.travis.yml Normal file
View file

@ -0,0 +1,9 @@
---
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt
script:
- nosetests

View file

@ -607,12 +607,13 @@ class Printer():
bedTempOffset = None
result = {}
for tool in self._temp.keys():
result["tool%d" % tool] = {
"actual": self._temp[tool][0],
"target": self._temp[tool][1],
"offset": tempOffset[tool] if tool in tempOffset.keys() and tempOffset[tool] is not None else 0
}
if self._temp is not None:
for tool in self._temp.keys():
result["tool%d" % tool] = {
"actual": self._temp[tool][0],
"target": self._temp[tool][1],
"offset": tempOffset[tool] if tool in tempOffset.keys() and tempOffset[tool] is not None else 0
}
if self._bedTemp is not None:
result["bed"] = {
"actual": self._bedTemp[0],