From f8a6db02f53cd28dbf82c880b7ec50644ab53d8a Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 11 May 2022 11:47:48 +0200 Subject: [PATCH] T, H and S GCode parameters are integers, not float numbers. --- src/Mod/Path/PathScripts/post/grbl_post.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/post/grbl_post.py b/src/Mod/Path/PathScripts/post/grbl_post.py index 9c0eaa8011..94d9252db5 100755 --- a/src/Mod/Path/PathScripts/post/grbl_post.py +++ b/src/Mod/Path/PathScripts/post/grbl_post.py @@ -505,7 +505,9 @@ def parse(pathobj): precision_string, ) ) - elif param in ["T", "H", "D", "S", "P", "L"]: + elif param in ["T", "H", "S"]: + outstring.append(param + str(int(c.Parameters[param]))) + elif param in ["D", "P", "L"]: outstring.append(param + str(c.Parameters[param])) elif param in ["A", "B", "C"]: outstring.append(