Skip to content

Commit

Permalink
G4 uses millisecond units now apparently, instead of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
triffid committed Feb 17, 2011
1 parent f78a048 commit d06a365
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gcode_parse.c
Expand Up @@ -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;
Expand Down

0 comments on commit d06a365

Please sign in to comment.