From 5c0dde4e148e9138cb105bad1d91d2bf96370088 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Thu, 3 Mar 2011 09:37:53 +0100 Subject: [PATCH] Changed M110 to match the description in the RepRap Wiki. --- gcode_parse.c | 3 ++- gcode_process.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gcode_parse.c b/gcode_parse.c index 9b51192..e3d059d 100644 --- a/gcode_parse.c +++ b/gcode_parse.c @@ -324,7 +324,8 @@ void gcode_parse_char(uint8_t c) { if ( #ifdef REQUIRE_LINENUMBER - (next_target.N >= next_target.N_expected) && (next_target.seen_N == 1) + ((next_target.N >= next_target.N_expected) && (next_target.seen_N == 1)) || + (next_target.seen_M && (next_target.M == 110)) #else 1 #endif diff --git a/gcode_process.c b/gcode_process.c index 3bb46ff..b963569 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -364,7 +364,7 @@ void process_gcode_command() { // M110- set line number case 110: - next_target.N_expected = next_target.S - 1; + // this is a no-op in Teacup break; // M111- set debug level #ifdef DEBUG