prevent arithmetic overflow for large max feedrates

This commit is contained in:
Michael Moon 2011-03-06 09:16:05 +11:00
parent 9234fefd06
commit 718ace8f05
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void process_gcode_command() {
// since it would be a major hassle to force the dda to not synchronise, just provide a fast feedrate and hope it's close enough to what host expects
case 0:
backup_f = next_target.target.F;
next_target.target.F = MAXIMUM_FEEDRATE_X * 2;
next_target.target.F = MAXIMUM_FEEDRATE_X * 2L;
enqueue(&next_target.target);
next_target.target.F = backup_f;
break;