Browse Source

Merge pull request #6000 from trivalik/NoWorkspaceWarning

prevent warning with define of NO_WORKSPACE_OFFSETS
Scott Lahteine 7 years ago
parent
commit
51353f8fea
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/Marlin_main.cpp

+ 4
- 2
Marlin/Marlin_main.cpp View File

@@ -4599,8 +4599,10 @@ inline void gcode_G92() {
4599 4599
         current_position[i] = code_value_axis_units(i);
4600 4600
         if (i != E_AXIS) didXYZ = true;
4601 4601
       #else
4602
-        float p = current_position[i],
4603
-              v = code_value_axis_units(i);
4602
+        #if DISABLED(NO_WORKSPACE_OFFSETS)
4603
+          float p = current_position[i];
4604
+        #endif
4605
+        float v = code_value_axis_units(i);
4604 4606
 
4605 4607
         current_position[i] = v;
4606 4608
 

Loading…
Cancel
Save