prevent warning with define of NO_WORKSPACE_OFFSETS

This commit is contained in:
Trivalik 2017-03-09 23:49:57 +01:00
parent 33f8a8a344
commit 71ac6f9d42

View File

@ -4607,8 +4607,10 @@ inline void gcode_G92() {
current_position[i] = code_value_axis_units(i);
if (i != E_AXIS) didXYZ = true;
#else
float p = current_position[i],
v = code_value_axis_units(i);
#if DISABLED(NO_WORKSPACE_OFFSETS)
float p = current_position[i];
#endif
float v = code_value_axis_units(i);
current_position[i] = v;