From 62a662ee61abb0bd835340ab0cc287a20f3ce83a Mon Sep 17 00:00:00 2001 From: Paciente8159 Date: Wed, 5 Oct 2022 23:24:47 +0100 Subject: [PATCH] prevent M2/M30 hold with check mode enabled - prevent M2/M30 hold with check mode enabled - any commands after M2 will still emit error --- uCNC/cnc_config.h | 2 +- uCNC/src/core/parser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uCNC/cnc_config.h b/uCNC/cnc_config.h index ff0d33a81..7f23f39a1 100644 --- a/uCNC/cnc_config.h +++ b/uCNC/cnc_config.h @@ -193,7 +193,7 @@ extern "C" /** * accept G0 and G1 without explicit target * */ -// #define IGNORE_G0_G1_MISSING_AXIS_WORDS +#define IGNORE_G0_G1_MISSING_AXIS_WORDS /** * processes and displays the currently executing gcode numbered line diff --git a/uCNC/src/core/parser.c b/uCNC/src/core/parser.c index 37e5f9a06..b04644982 100644 --- a/uCNC/src/core/parser.c +++ b/uCNC/src/core/parser.c @@ -1602,7 +1602,7 @@ uint8_t parser_exec_command(parser_state_t *new_state, parser_words_t *words, pa break; } - if (hold) + if (hold && !mc_get_checkmode()) { mc_pause(); if (resetparser)