Browse Source

prevent warning with define of NO_WORKSPACE_OFFSETS

Trivalik 7 years ago
parent
commit
71ac6f9d42
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/Marlin_main.cpp

+ 4
- 2
Marlin/Marlin_main.cpp View File

4607
         current_position[i] = code_value_axis_units(i);
4607
         current_position[i] = code_value_axis_units(i);
4608
         if (i != E_AXIS) didXYZ = true;
4608
         if (i != E_AXIS) didXYZ = true;
4609
       #else
4609
       #else
4610
-        float p = current_position[i],
4611
-              v = code_value_axis_units(i);
4610
+        #if DISABLED(NO_WORKSPACE_OFFSETS)
4611
+          float p = current_position[i];
4612
+        #endif
4613
+        float v = code_value_axis_units(i);
4612
 
4614
 
4613
         current_position[i] = v;
4615
         current_position[i] = v;
4614
 
4616
 

Loading…
Cancel
Save