Merge pull request #8335 from thinkyhead/bf1_fix_get_destination
[1.1] Fix gcode_get_destination E axis
This commit is contained in:
commit
279b73fecd
1 changed files with 4 additions and 2 deletions
|
|
@ -3352,8 +3352,10 @@ static void homeaxis(const AxisEnum axis) {
|
||||||
*/
|
*/
|
||||||
void gcode_get_destination() {
|
void gcode_get_destination() {
|
||||||
LOOP_XYZE(i) {
|
LOOP_XYZE(i) {
|
||||||
if (parser.seen(axis_codes[i]))
|
if (parser.seen(axis_codes[i])) {
|
||||||
destination[i] = LOGICAL_TO_NATIVE(parser.value_axis_units((AxisEnum)i) + (axis_relative_modes[i] || relative_mode ? current_position[i] : 0), i);
|
const float v = parser.value_axis_units((AxisEnum)i) + (axis_relative_modes[i] || relative_mode ? current_position[i] : 0);
|
||||||
|
destination[i] = (i == E_AXIS ? v : LOGICAL_TO_NATIVE(v, i));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
destination[i] = current_position[i];
|
destination[i] = current_position[i];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue