From 41eb9481b377e27e440bdaf6c3cd9e2f5f92fed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 5 Dec 2017 12:17:48 +0100 Subject: [PATCH] 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 --- src/octoprint/printer/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 7a619c45..81fe12ac 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -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)):