check passed feedrates vs maximums in machine.h.

This commit is contained in:
Michael Moon 2010-09-12 13:57:58 +10:00
parent eac7f2a5f7
commit c5b3408b52
1 changed files with 8 additions and 0 deletions

View File

@ -402,6 +402,14 @@ void process_gcode_command(GCODE_COMMAND *gcmd) {
// G1 - synchronised motion
case 1:
// check speeds here
if (gcmd->seen_Z) {
if (gcmd->target.F > MAXIMUM_FEEDRATE_Z)
gcmd->target.F = MAXIMUM_FEEDRATE_Z;
}
else if (gcmd->target.F > MAXIMUM_FEEDRATE_X)
gcmd->target.F = MAXIMUM_FEEDRATE_X;
enqueue(&gcmd->target);
break;