mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-18 05:45:33 -07:00
Misc. code cleanup
This commit is contained in:
parent
45d3866f97
commit
cca5844ba9
5 changed files with 12 additions and 22 deletions
|
|
@ -501,13 +501,9 @@ void GCodeQueue::get_serial_commands() {
|
|||
char* gpos = strchr(command, 'G');
|
||||
if (gpos) {
|
||||
switch (strtol(gpos + 1, nullptr, 10)) {
|
||||
case 0: case 1:
|
||||
#if ENABLED(ARC_SUPPORT)
|
||||
case 2: case 3:
|
||||
#endif
|
||||
#if ENABLED(BEZIER_CURVE_SUPPORT)
|
||||
case 5:
|
||||
#endif
|
||||
case 0 ... 1:
|
||||
TERN_(ARC_SUPPORT, case 2 ... 3:)
|
||||
TERN_(BEZIER_CURVE_SUPPORT, case 5:)
|
||||
PORT_REDIRECT(SERIAL_PORTMASK(p)); // Reply to the serial port that sent the command
|
||||
SERIAL_ECHOLNPGM(STR_ERR_STOPPED);
|
||||
LCD_MESSAGEPGM(MSG_STOPPED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue