Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-04-25 12:17:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-04-25 12:17:44 +0300
commit17043ac2c86094620b42aa12c510a4b107004c16 (patch)
tree814de990c2f162aa24820f663f9e3b72489d365b
parent02ccc11fe819493d335d50d6500b40d68ebec213 (diff)
Minor bug fix to M309
-rw-r--r--src/GCodes/GCodes.cpp4
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
{