diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-03-08 16:49:10 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-03-08 16:49:10 +0300 |
commit | 873b5056cba92eb4514d8b8256c7c9e25fe315ab (patch) | |
tree | 7cc6d938f56dae83e2dcea8383ea1bbeee0fadb7 /src/Display | |
parent | 4f89d90738a995e69738965273a5173be4b93e4e (diff) |
Increased allowed length of GCode commands to 256 characters
Diffstat (limited to 'src/Display')
-rw-r--r-- | src/Display/MenuItem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Display/MenuItem.cpp b/src/Display/MenuItem.cpp index 8bae0a22..147fe221 100644 --- a/src/Display/MenuItem.cpp +++ b/src/Display/MenuItem.cpp @@ -657,7 +657,7 @@ bool ValueMenuItem::Adjust_AlterHelper(int clicks) noexcept case 21: // 521 baby stepping { - String<SHORT_GCODE_LENGTH> cmd; + String<ShortGCodeLength> cmd; cmd.printf("M290 Z%.2f", (double)(0.02 * clicks)); (void) reprap.GetGCodes().ProcessCommandFromLcd(cmd.c_str()); adjusting = AdjustMode::liveAdjusting; @@ -667,7 +667,7 @@ bool ValueMenuItem::Adjust_AlterHelper(int clicks) noexcept default: if (itemNumber >= 10 && itemNumber < 10 + reprap.GetGCodes().GetVisibleAxes()) // 510-518 axis position adjustment { - String<SHORT_GCODE_LENGTH> cmd; + String<ShortGCodeLength> cmd; const float amount = ((itemNumber == 12) ? 0.02 : 0.1) * clicks; // 0.02mm Z resolution, 0.1mm for other axes cmd.printf("M120 G91 G1 F3000 %c%.2f M121", 'X' + (itemNumber - 10), (double)amount); (void) reprap.GetGCodes().ProcessCommandFromLcd(cmd.c_str()); |