Skip to content

Commit fb8de1f

Browse files
committed
Fix TCode command change detection
1 parent 351f27a commit fb8de1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Device/TCodeDevice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public TCodeDevice()
6262

6363
private static void AppendIfChanged(StringBuilder stringBuilder, string axisName, float cmd, float lastCmd)
6464
{
65-
if (float.IsNaN(lastCmd) || Mathf.Abs(lastCmd - cmd) * 999 >= 1)
65+
if (float.IsNaN(lastCmd) || Mathf.Abs(lastCmd - cmd) * 9999 >= 1)
6666
stringBuilder.AppendTCode(axisName, cmd).Append(" ");
6767
}
6868

0 commit comments

Comments
 (0)