Changed M110 to match the description in the RepRap Wiki.

This commit is contained in:
Markus Hitter 2011-03-03 09:37:53 +01:00
parent c6a9f24e24
commit 5c0dde4e14
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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