From 3e02de3cde14efad7c133e02c9ce114a6530294c Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sat, 24 May 2014 14:49:53 +0200 Subject: [PATCH] gcode_parse.h: raise S word size. Some M-codes apparently need this. Perhaps it could be avoided, but it costs just 8 bytes binary size and 2 bytes RAM, so not really a reason to make a headache. --- gcode_parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcode_parse.h b/gcode_parse.h index 825bbbc..d15716d 100644 --- a/gcode_parse.h +++ b/gcode_parse.h @@ -47,7 +47,7 @@ typedef struct { uint8_t M; ///< M command number TARGET target; ///< target position: X, Y, Z, E and F - int16_t S; ///< S word (various uses) + int32_t S; ///< S word (various uses) uint16_t P; ///< P word (various uses) uint8_t T; ///< T word (tool index)