From 2004f04d4a1b4af3124725ffa66ae58c479f1ebd Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sat, 3 Jul 2010 00:09:06 +0200 Subject: [PATCH] An M-code stuck when receiving G commands and vice-versa. Testcase: M105 G1 F100 --> Temperatures would be sent the second time as well. --- mendel/gcode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mendel/gcode.c b/mendel/gcode.c index 03491e8..c6fc621 100644 --- a/mendel/gcode.c +++ b/mendel/gcode.c @@ -331,7 +331,12 @@ void scan_char(uint8_t c) { } // reset variables - next_target.seen_X = next_target.seen_Y = next_target.seen_Z = next_target.seen_E = next_target.seen_F = next_target.seen_S = next_target.seen_P = next_target.seen_N = next_target.seen_checksum = next_target.seen_comment = next_target.checksum_read = next_target.checksum_calculated = 0; + next_target.seen_X = next_target.seen_Y = next_target.seen_Z = \ + next_target.seen_E = next_target.seen_F = next_target.seen_G = \ + next_target.seen_S = next_target.seen_P = next_target.seen_N = \ + next_target.seen_M = next_target.seen_checksum = \ + next_target.seen_comment = next_target.checksum_read = \ + next_target.checksum_calculated = 0; last_field = 0; read_digit.sign = 0; read_digit.mantissa = 0;