Merge pull request #6000 from trivalik/NoWorkspaceWarning
prevent warning with define of NO_WORKSPACE_OFFSETS
This commit is contained in:
commit
51353f8fea
1 changed files with 4 additions and 2 deletions
|
@ -4599,8 +4599,10 @@ inline void gcode_G92() {
|
||||||
current_position[i] = code_value_axis_units(i);
|
current_position[i] = code_value_axis_units(i);
|
||||||
if (i != E_AXIS) didXYZ = true;
|
if (i != E_AXIS) didXYZ = true;
|
||||||
#else
|
#else
|
||||||
float p = current_position[i],
|
#if DISABLED(NO_WORKSPACE_OFFSETS)
|
||||||
v = code_value_axis_units(i);
|
float p = current_position[i];
|
||||||
|
#endif
|
||||||
|
float v = code_value_axis_units(i);
|
||||||
|
|
||||||
current_position[i] = v;
|
current_position[i] = v;
|
||||||
|
|
||||||
|
|
Reference in a new issue