Skip to content

Commit

Permalink
Merge pull request #509 from stklcode/fix/mega-p-leveling
Browse files Browse the repository at this point in the history
fix manual leveling from Mega P TFT
  • Loading branch information
knutwurst authored Jan 11, 2024
2 parents 48db317 + 8b67bfe commit 3844473
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1930,23 +1930,31 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
#if ENABLED(KNUTWURST_MEGA_P)
case 51:
if (CodeSeen('H')) {
injectCommands(F("G1 Z5 F500"));
injectCommands(F("G1 X30 Y30 F5000"));
injectCommands(F("G1 Z0.15 F300"));
injectCommands(F(
"G1 Z5 F500\n"
"G1 X30 Y30 F5000\n"
"G1 Z0.15 F300"
));
} else if (CodeSeen('I')) {
injectCommands(F("G1 Z5 F500"));
injectCommands(F("G1 X190 Y30 F5000"));
injectCommands(F("G1 Z0.15 F300"));
injectCommands(F(
"G1 Z5 F500\n"
"G1 X190 Y30 F5000\n"
"G1 Z0.15 F300"
));
} else if (CodeSeen('J')) {
injectCommands(F("G1 Z5 F500"));
injectCommands(F("G1 X190 Y190 F5000"));
injectCommands(F("G1 Z0.15 F300"));
injectCommands(F(
"G1 Z5 F500\n"
"G1 X190 Y190 F5000\n"
"G1 Z0.15 F300"
));
} else if (CodeSeen('K')) {
injectCommands(F("G1 Z5 F500"));
injectCommands(F("G1 X30 Y190 F5000"));
injectCommands(F("G1 Z0.15 F300"));
injectCommands(F(
"G1 Z5 F500\n"
"G1 X30 Y190 F5000\n"
"G1 Z0.15 F300"
));
} else if (CodeSeen('L')) {
injectCommands(F("G1 X100 Y100 Z50 F5000"));
injectCommands(F("G1 X100 Y100 Z50 F5000"));
}
break;
#endif
Expand Down

0 comments on commit 3844473

Please sign in to comment.