From 9ab4fa608a678856e34c911ee2d40d2f495b99a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 18 Apr 2014 14:03:38 +0200 Subject: [PATCH] Corrected typo for print bed command "offset", expected parameter is called "offset" not "offsets" Compare #444 --- docs/api/printer.rst | 2 +- src/octoprint/server/api/printer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/printer.rst b/docs/api/printer.rst index 66b61f06..19eb9ec6 100644 --- a/docs/api/printer.rst +++ b/docs/api/printer.rst @@ -506,7 +506,7 @@ Issue a bed command offset Sets the given temperature offset on the printer's tools. Additional parameters: - * ``offsets``: Offset to set. + * ``offset``: Offset to set. All of these commands may only be sent if the printer is currently operational. Otherwise a :http:statuscode:`409` is returned. diff --git a/src/octoprint/server/api/printer.py b/src/octoprint/server/api/printer.py index d7f4a3dd..87d71717 100644 --- a/src/octoprint/server/api/printer.py +++ b/src/octoprint/server/api/printer.py @@ -168,7 +168,7 @@ def printerBedCommand(): ##~~ temperature offset elif command == "offset": - offset = data["offsets"] + offset = data["offset"] # make sure the offset is valid if not isinstance(offset, (int, long, float)):