From b920838109c89941776dd266d8a6e804a8634ea2 Mon Sep 17 00:00:00 2001 From: Elijah Insua Date: Mon, 22 Sep 2014 14:05:35 -0700 Subject: [PATCH] bump mantissa to uint16_t to enable G38.5 --- gcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcode.c b/gcode.c index 9d0f81d..4afa027 100644 --- a/gcode.c +++ b/gcode.c @@ -123,7 +123,7 @@ uint8_t gc_execute_line(char *line) char letter; float value; uint8_t int_value = 0; - uint8_t mantissa = 0; // NOTE: For mantissa values > 255, variable type must be changed to uint16_t. + uint16_t mantissa = 0; // NOTE: For mantissa values > 255, variable type must be changed to uint16_t. uint8_t probe_mode = 0; while (line[char_counter] != 0) { // Loop until no more g-code words in line.