diff --git a/AUTHORS.md b/AUTHORS.md index 4de369152..150279e67 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -178,6 +178,7 @@ date of first contribution): * [Shyam Sunder](https://github.com/sgsunder) * [Conny Rasch](https://github.com/CMR-DEV) * [Christopher Perrin](https://github.com/cperrin88) + * [Martin Bartsch](https://github.com/kaenguruhs) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 74ed974d2..a4841b96b 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -36,6 +36,7 @@ from octoprint.util import ( TypeAlreadyInQueue, TypedQueue, chunks, + dict_merge, filter_non_ascii, filter_non_utf8, get_bom, @@ -1380,7 +1381,7 @@ class MachineCom: if len(retval) == 3: variables = retval[2] - context.update({"plugins": {name: variables}}) + context = dict_merge(context, {"plugins": {name: variables}}) template = settings().loadScript("gcode", scriptName, context=context) if template is None: