From 4ed24d450782b9147d2dab0accba1d6b068dc1b4 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Fri, 4 Feb 2011 12:08:52 +1100 Subject: [PATCH] move Echo on/off to M240/M241 --- gcode_process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index 80b6e1f..2c11311 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -379,14 +379,14 @@ void process_gcode_command() { break; #ifdef DEBUG - // M140- echo off - case 140: + // M240- echo off + case 240: debug_flags &= ~DEBUG_ECHO; serial_writestr_P(PSTR("Echo off")); // newline is sent from gcode_parse after we return break; - // M141- echo on - case 141: + // M241- echo on + case 241: debug_flags |= DEBUG_ECHO; serial_writestr_P(PSTR("Echo on")); // newline is sent from gcode_parse after we return