From d06a365f54c814dece73ed579072fabc375a41b3 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Thu, 17 Feb 2011 14:05:13 +1100 Subject: [PATCH] G4 uses millisecond units now apparently, instead of seconds --- gcode_parse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gcode_parse.c b/gcode_parse.c index 9fb078b..b5b8f43 100644 --- a/gcode_parse.c +++ b/gcode_parse.c @@ -166,11 +166,7 @@ void gcode_parse_char(uint8_t c) { serwrite_uint16(next_target.S); break; case 'P': - // if this is dwell, multiply by 1000 to convert seconds to milliseconds - if (next_target.G == 4) - next_target.P = decfloat_to_int(&read_digit, 1000, 1); - else - next_target.P = decfloat_to_int(&read_digit, 1, 1); + next_target.P = decfloat_to_int(&read_digit, 1, 1); if (debug_flags & DEBUG_ECHO) serwrite_uint16(next_target.P); break;