last_temperatures -> last_temperature (for consistency)

This commit is contained in:
Gina Häußge 2017-06-22 12:47:55 +02:00
parent b34fc8e05e
commit 4665070601
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ All GCODE scripts have access to the following template variables through the te
Consists of ``x``, ``y``, ``z`` and ``e`` coordinates as received by the printer and tracked values for ``f`` and
current tool ``t`` taken from commands sent through OctoPrint. All of these coordinates might be ``None`` if no
position could be retrieved from the printer or the values could not be tracked (in case of ``f`` and ``t``)!
* ``last_temperatures``: Last actual and target temperature reported for all available tools and if available the
* ``last_temperature``: Last actual and target temperature reported for all available tools and if available the
heated bed. This is a dictionary of key-value pairs. The keys are the indices of the available tools (``0``, ``1``,
...) and ``b`` for the heated bed. The values are a dictionary consisting of ``actual`` and ``target`` keys mapped
to the corresponding temperature in degrees celsius. Note that not all tools your printer has must necessarily be

View file

@ -762,7 +762,7 @@ class MachineCom(object):
context.update(dict(
printer_profile=self._printerProfileManager.get_current_or_default(),
last_position=self.last_position,
last_temperatures=self.last_temperature.as_script_dict()
last_temperature=self.last_temperature.as_script_dict()
))
if scriptName == "afterPrintPaused" or scriptName == "beforePrintResumed":