Browse Source

Fix compile error w/out LCD (#16502)

ellensp 5 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
     // Wait for bed to heat back up between probing points
1253
     // Wait for bed to heat back up between probing points
1254
     if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) {
1254
     if (axis == Z_AXIS && distance < 0 && thermalManager.isHeatingBed()) {
1255
       serialprintPGM(msg_wait_for_bed_heating);
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
       thermalManager.wait_for_bed();
1259
       thermalManager.wait_for_bed();
1258
-      ui.reset_status();
1260
+      #if HAS_DISPLAY
1261
+        ui.reset_status();
1262
+      #endif
1259
     }
1263
     }
1260
   #endif
1264
   #endif
1261
 
1265
 

Loading…
Cancel
Save