fixed a bug where F-commands never would modify feed-rate of G0-operations
This commit is contained in:
parent
f38c5016ed
commit
9f5365aac9
4
gcode.c
4
gcode.c
@ -217,9 +217,13 @@ uint8_t gc_execute_line(char *line) {
|
||||
case 'F':
|
||||
if (gc.inverse_feed_rate_mode) {
|
||||
inverse_feed_rate = unit_converted_value; // seconds per motion for this motion only
|
||||
} else {
|
||||
if (gc.motion_mode == MOTION_MODE_SEEK) {
|
||||
gc.seek_rate = unit_converted_value/60;
|
||||
} else {
|
||||
gc.feed_rate = unit_converted_value/60; // millimeters pr second
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'I': case 'J': case 'K': offset[letter-'I'] = unit_converted_value; break;
|
||||
case 'P': p = value; break;
|
||||
|
Loading…
Reference in New Issue
Block a user