浏览代码

fix compile errors

================================

Changed to conditional compile for AT90USB issue
Bob-the-Kuhn 8 年前
父节点
当前提交
9dda022705
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 5
    1
      Marlin/G26_Mesh_Validation_Tool.cpp
  2. 3
    3
      Marlin/Marlin_main.cpp

+ 5
- 1
Marlin/G26_Mesh_Validation_Tool.cpp 查看文件

@@ -137,7 +137,11 @@
137 137
   void set_destination_to_current();
138 138
   void set_current_to_destination();
139 139
   void prepare_move_to_destination();
140
-  void sync_plan_position_e();
140
+  #if AVR_AT90USB1286_FAMILY  // Teensyduino & Printrboard IDE extensions have compile errors without this
141
+    inline void sync_plan_position_e() { planner.set_e_position_mm(current_position[E_AXIS]); }
142
+  #else
143
+    void sync_plan_position_e();
144
+  #endif
141 145
   #if ENABLED(NEWPANEL)
142 146
     void lcd_setstatusPGM(const char* const message, const int8_t level);
143 147
     void chirp_at_user();

+ 3
- 3
Marlin/Marlin_main.cpp 查看文件

@@ -5895,7 +5895,7 @@ inline void gcode_M17() {
5895 5895
 
5896 5896
     if (!DEBUGGING(DRYRUN) && unload_length != 0) {
5897 5897
       #if ENABLED(PREVENT_COLD_EXTRUSION)
5898
-        if (!thermalManager.allow_cold_extrude && 
5898
+        if (!thermalManager.allow_cold_extrude &&
5899 5899
             thermalManager.degTargetHotend(active_extruder) < thermalManager.extrude_min_temp) {
5900 5900
           SERIAL_ERROR_START();
5901 5901
           SERIAL_ERRORLNPGM(MSG_TOO_COLD_FOR_M600);
@@ -7659,7 +7659,7 @@ inline void gcode_M18_M84() {
7659 7659
       #endif
7660 7660
     }
7661 7661
 
7662
-    #if ENABLED(AUTO_BED_LEVELING_UBL)
7662
+    #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTRA_LCD)  //only needed if have an LCD
7663 7663
       ubl_lcd_map_control = false;
7664 7664
       defer_return_to_status = false;
7665 7665
     #endif
@@ -12442,7 +12442,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
12442 12442
     #if ENABLED(DISABLE_INACTIVE_E)
12443 12443
       disable_e_steppers();
12444 12444
     #endif
12445
-    #if ENABLED(AUTO_BED_LEVELING_UBL)
12445
+    #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTRA_LCD)  //only needed if have an LCD
12446 12446
       ubl_lcd_map_control = false;
12447 12447
       defer_return_to_status = false;
12448 12448
     #endif

正在加载...
取消
保存