Skip to content

Commit

Permalink
Corrected M21 to G21 in resurrect.g file
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Apr 7, 2024
1 parent 5d93f5c commit 3069f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GCodes/GCodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ void GCodes::SaveResumeInfo(bool wasPowerFailure) noexcept
}
#endif
// We no longer use G92 to restore the positions because we don't know whether a tool is loaded.
buf.printf("M21\nM98 P\"%s\"", RESUME_PROLOGUE_G); // set units to mm and call the prologue, passing the machine positions of the axes
buf.printf("G21\nM98 P\"%s\"", RESUME_PROLOGUE_G); // set units to mm and call the prologue, passing the machine positions of the axes
for (size_t i = 0; i < numVisibleAxes; ++i)
{
buf.catf(" %c%.3f", axisLetters[i], (double)coords[i]);
Expand Down

0 comments on commit 3069f2d

Please sign in to comment.