G4 uses millisecond units now apparently, instead of seconds

This commit is contained in:
Michael Moon 2011-02-17 14:05:13 +11:00
parent f78a0483d7
commit d06a365f54
1 changed files with 1 additions and 5 deletions

View File

@ -166,10 +166,6 @@ void gcode_parse_char(uint8_t c) {
serwrite_uint16(next_target.S); serwrite_uint16(next_target.S);
break; break;
case 'P': 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) if (debug_flags & DEBUG_ECHO)
serwrite_uint16(next_target.P); serwrite_uint16(next_target.P);