Browse Source

Tweak TOUCH_MI_DEPLOY_XPOS block

Scott Lahteine 5 years ago
parent
commit
17cd1a4f26
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      Marlin/src/module/probe.cpp

+ 6
- 4
Marlin/src/module/probe.cpp View File

118
     #endif
118
     #endif
119
 
119
 
120
     #if ENABLED(TOUCH_MI_MANUAL_DEPLOY)
120
     #if ENABLED(TOUCH_MI_MANUAL_DEPLOY)
121
+
121
       const screenFunc_t prev_screen = ui.currentScreen;
122
       const screenFunc_t prev_screen = ui.currentScreen;
122
       LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI);
123
       LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI);
123
       ui.return_to_status();
124
       ui.return_to_status();
130
       while (wait_for_user) idle();
131
       while (wait_for_user) idle();
131
       ui.reset_status();
132
       ui.reset_status();
132
       ui.goto_screen(prev_screen);
133
       ui.goto_screen(prev_screen);
133
-    #else
134
-      #ifdef TOUCH_MI_DEPLOY_XPOS
135
-        do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
136
-      #endif
134
+
135
+    #elif defined(TOUCH_MI_DEPLOY_XPOS)
136
+
137
+      do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
138
+
137
     #endif
139
     #endif
138
   }
140
   }
139
 
141
 

Loading…
Cancel
Save