From 8e3cf55723544dbe7ef6e4f92dede79e9a2ce70c Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 2 Sep 2012 19:56:28 +0200 Subject: [PATCH] gcode_process.c: remove M254: write arbitrary memory location. Pretty esoteric and I can't imagine how to make meaningful use of this. And well, we have to make room for eeconfig commands. --- gcode_process.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index be5fd6c..0be1a98 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -780,17 +780,6 @@ void process_gcode_command() { } // newline is sent from gcode_parse after we return break; - - case 254: - //? --- M254: write arbitrary memory location --- - //? Undocumented - //? This command is only available in DEBUG builds. - if ( ! next_target.seen_S || ! next_target.seen_P) - break; - sersendf_P(PSTR("%x:%x->%x"), next_target.S, *(volatile uint8_t *)(next_target.S), next_target.P); - (*(volatile uint8_t *)(next_target.S)) = next_target.P; - // newline is sent from gcode_parse after we return - break; #endif /* DEBUG */ // unknown mcode: spit an error