An M-code stuck when receiving G commands and vice-versa.
Testcase: M105 G1 F100 --> Temperatures would be sent the second time as well.
This commit is contained in:
parent
85b09112b9
commit
2004f04d4a
|
|
@ -331,7 +331,12 @@ void scan_char(uint8_t c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset variables
|
// 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;
|
last_field = 0;
|
||||||
read_digit.sign = 0;
|
read_digit.sign = 0;
|
||||||
read_digit.mantissa = 0;
|
read_digit.mantissa = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue