Fix offset values on API after setting one offset

Make sure to set the actual effective offsets as provided by the comm
layer (which merges incoming single offset adjustments) instead of only
setting the input, effectively nuking return of offsets set prior.

Closes #2268
This commit is contained in:
Gina Häußge 2017-12-05 12:17:48 +01:00
parent 743d590d52
commit 41eb9481b3

View file

@ -367,7 +367,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
return
self._comm.setTemperatureOffset(offsets)
self._setOffsets(offsets)
self._setOffsets(self._comm.getOffsets())
def _convert_rate_value(self, factor, min=0, max=200):
if not isinstance(factor, (int, float, long)):