Skip to content

Commit

Permalink
Fix for handling temperature G-code commands with float values (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
asimonen authored and kantlivelong committed Dec 2, 2020
1 parent 9a7073f commit 89a27b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_smartpreheat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_temps_from_file(self, selected_file):

tempMatch = octoprint.util.comm.regexes_parameters["floatS"].search(line)
if tempMatch:
temp = int(tempMatch.group("value"))
temp = float(tempMatch.group("value"))

if gcode in ("M104", "M109"):
self._logger.debug("Line %d: Tool %s = %s", lineNum, toolNum, temp)
Expand Down

0 comments on commit 89a27b8

Please sign in to comment.