diff --git a/gcode_parse.c b/gcode_parse.c index d4b7c5d..17f9163 100644 --- a/gcode_parse.c +++ b/gcode_parse.c @@ -105,11 +105,6 @@ static int32_t decfloat_to_int(decfloat *df, int32_t multiplicand, uint32_t deno ****************************************************************************/ void gcode_parse_char(uint8_t c) { - #ifdef ASTERISK_IN_CHECKSUM_INCLUDED - if (next_target.seen_checksum == 0) - next_target.checksum_calculated = crc(next_target.checksum_calculated, c); - #endif - // uppercase if (c >= 'a' && c <= 'z') c &= ~32; @@ -319,11 +314,8 @@ void gcode_parse_char(uint8_t c) { } else if ( next_target.seen_parens_comment == 1 && c == ')') next_target.seen_parens_comment = 0; // recognize stuff after a (comment) - - #ifndef ASTERISK_IN_CHECKSUM_INCLUDED if (next_target.seen_checksum == 0) next_target.checksum_calculated = crc(next_target.checksum_calculated, c); - #endif // end of line if ((c == 10) || (c == 13)) { diff --git a/gcode_parse.h b/gcode_parse.h index a7021c8..da701cb 100644 --- a/gcode_parse.h +++ b/gcode_parse.h @@ -5,10 +5,6 @@ #include "dda.h" -// wether the asterisk (checksum-command) is included for checksum calculation -// undefined for RepRap host software -//#define ASTERISK_IN_CHECKSUM_INCLUDED - // wether to insist on N line numbers // if not defined, N's are completely ignored //#define REQUIRE_LINENUMBER