Browse Source

Fix compile error w/out LCD (#16502)

ellensp 4 years ago
parent
commit
669fe74096
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      Marlin/src/module/motion.cpp

+ 6
- 2
Marlin/src/module/motion.cpp View File

@@ -1253,9 +1253,13 @@ void do_homing_move(const AxisEnum axis, const float distance, const feedRate_t
1253 1253
     // Wait for bed to heat back up between probing points
1254 1254
     if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) {
1255 1255
       serialprintPGM(msg_wait_for_bed_heating);
1256
-      LCD_MESSAGEPGM(MSG_BED_HEATING);
1256
+      #if HAS_DISPLAY
1257
+        LCD_MESSAGEPGM(MSG_BED_HEATING);
1258
+      #endif
1257 1259
       thermalManager.wait_for_bed();
1258
-      ui.reset_status();
1260
+      #if HAS_DISPLAY
1261
+        ui.reset_status();
1262
+      #endif
1259 1263
     }
1260 1264
   #endif
1261 1265
 

Loading…
Cancel
Save