diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-04-25 12:17:44 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-04-25 12:17:44 +0300 |
commit | 17043ac2c86094620b42aa12c510a4b107004c16 (patch) | |
tree | 814de990c2f162aa24820f663f9e3b72489d365b /src | |
parent | 02ccc11fe819493d335d50d6500b40d68ebec213 (diff) |
Minor bug fix to M309
Diffstat (limited to 'src')
-rw-r--r-- | src/GCodes/GCodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp index 871985f8..a1c57677 100644 --- a/src/GCodes/GCodes.cpp +++ b/src/GCodes/GCodes.cpp @@ -3225,10 +3225,10 @@ GCodeResult GCodes::DoDwell(GCodeBuffer& gb) THROWS(GCodeException) // Get the tool specified by the P parameter, or the current tool if no P parameter ReadLockedPointer<Tool> GCodes::GetSpecifiedOrCurrentTool(GCodeBuffer& gb) THROWS(GCodeException) { - unsigned int tNumber; + int tNumber; if (gb.Seen('P')) { - tNumber = gb.GetUIValue(); + tNumber = (int)gb.GetUIValue(); } else { |