Browse Source

✏️ Fix missing brace (#23337)

Followup to #22916

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Tanguy Pruvot 2 years ago
parent
commit
da67deb621
No account linked to committer's email address

+ 9
- 7
Marlin/src/feature/bltouch.cpp View File

68
 
68
 
69
   #else
69
   #else
70
 
70
 
71
-    if (DEBUGGING(LEVELING)) {
72
-      PGMSTR(mode0, "OD");
73
-      PGMSTR(mode1, "5V");
74
-      DEBUG_ECHOPGM("BLTouch Mode: ");
75
-      DEBUG_ECHOPGM_P(bltouch.od_5v_mode ? mode1 : mode0);
76
-      DEBUG_ECHOLNPGM(" (Default " TERN(BLTOUCH_SET_5V_MODE, "5V", "OD") ")");
77
-    }
71
+    #ifdef DEBUG_OUT
72
+      if (DEBUGGING(LEVELING)) {
73
+        PGMSTR(mode0, "OD");
74
+        PGMSTR(mode1, "5V");
75
+        DEBUG_ECHOPGM("BLTouch Mode: ");
76
+        DEBUG_ECHOPGM_P(bltouch.od_5v_mode ? mode1 : mode0);
77
+        DEBUG_ECHOLNPGM(" (Default " TERN(BLTOUCH_SET_5V_MODE, "5V", "OD") ")");
78
+      }
79
+    #endif
78
 
80
 
79
     const bool should_set = od_5v_mode != ENABLED(BLTOUCH_SET_5V_MODE);
81
     const bool should_set = od_5v_mode != ENABLED(BLTOUCH_SET_5V_MODE);
80
 
82
 

+ 1
- 1
Marlin/src/lcd/menu/menu_bed_corners.cpp View File

292
     } while (good_points < nr_edge_points); // loop until all points within tolerance
292
     } while (good_points < nr_edge_points); // loop until all points within tolerance
293
 
293
 
294
     #if ENABLED(BLTOUCH)
294
     #if ENABLED(BLTOUCH)
295
-      if (bltouch.high_speed_mode)
295
+      if (bltouch.high_speed_mode) {
296
         // In HIGH SPEED MODE do clearance and stow at the very end
296
         // In HIGH SPEED MODE do clearance and stow at the very end
297
         do_blocking_move_to_z(current_position.z + LEVEL_CORNERS_Z_HOP);
297
         do_blocking_move_to_z(current_position.z + LEVEL_CORNERS_Z_HOP);
298
         bltouch.stow();
298
         bltouch.stow();

+ 5
- 3
Marlin/src/lcd/menu/menu_configuration.cpp View File

53
   #include "../../libs/buzzer.h"
53
   #include "../../libs/buzzer.h"
54
 #endif
54
 #endif
55
 
55
 
56
+#include "../../core/debug_out.h"
57
+
56
 #define HAS_DEBUG_MENU ENABLED(LCD_PROGRESS_BAR_TEST)
58
 #define HAS_DEBUG_MENU ENABLED(LCD_PROGRESS_BAR_TEST)
57
 
59
 
58
 void menu_advanced_settings();
60
 void menu_advanced_settings();
219
     void bltouch_report() {
221
     void bltouch_report() {
220
       PGMSTR(mode0, "OD");
222
       PGMSTR(mode0, "OD");
221
       PGMSTR(mode1, "5V");
223
       PGMSTR(mode1, "5V");
222
-      SERIAL_ECHOPGM("BLTouch Mode: ");
223
-      SERIAL_ECHOPGM_P(bltouch.od_5v_mode ? mode1 : mode0);
224
-      SERIAL_ECHOLNPGM(" (Default " TERN(BLTOUCH_SET_5V_MODE, "5V", "OD") ")");
224
+      DEBUG_ECHOPGM("BLTouch Mode: ");
225
+      DEBUG_ECHOPGM_P(bltouch.od_5v_mode ? mode1 : mode0);
226
+      DEBUG_ECHOLNPGM(" (Default " TERN(BLTOUCH_SET_5V_MODE, "5V", "OD") ")");
225
       char mess[21];
227
       char mess[21];
226
       strcpy_P(mess, PSTR("BLTouch Mode: "));
228
       strcpy_P(mess, PSTR("BLTouch Mode: "));
227
       strcpy_P(&mess[15], bltouch.od_5v_mode ? mode1 : mode0);
229
       strcpy_P(&mess[15], bltouch.od_5v_mode ? mode1 : mode0);

+ 2
- 2
buildroot/tests/BIGTREE_GTR_V1_0_usb_flash_drive View File

10
 opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT 3 \
10
 opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT 3 \
11
         EXTRUDERS 8 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 TEMP_SENSOR_5 1 TEMP_SENSOR_6 1 TEMP_SENSOR_7 1
11
         EXTRUDERS 8 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 TEMP_SENSOR_5 1 TEMP_SENSOR_6 1 TEMP_SENSOR_7 1
12
 opt_enable SDSUPPORT USB_FLASH_DRIVE_SUPPORT USE_OTG_USB_HOST \
12
 opt_enable SDSUPPORT USB_FLASH_DRIVE_SUPPORT USE_OTG_USB_HOST \
13
-           REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER BLTOUCH NEOPIXEL_LED Z_SAFE_HOMING \
14
-           FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE
13
+           REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER BLTOUCH LEVEL_BED_CORNERS LEVEL_CORNERS_USE_PROBE \
14
+           NEOPIXEL_LED Z_SAFE_HOMING FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE
15
 # Not necessary to enable auto-fan for all extruders to hit problematic code paths
15
 # Not necessary to enable auto-fan for all extruders to hit problematic code paths
16
 opt_set E0_AUTO_FAN_PIN PC10 E1_AUTO_FAN_PIN PC11 E2_AUTO_FAN_PIN PC12 NEOPIXEL_PIN PF13 \
16
 opt_set E0_AUTO_FAN_PIN PC10 E1_AUTO_FAN_PIN PC11 E2_AUTO_FAN_PIN PC12 NEOPIXEL_PIN PF13 \
17
         X_DRIVER_TYPE TMC2208 Y_DRIVER_TYPE TMC2130 \
17
         X_DRIVER_TYPE TMC2208 Y_DRIVER_TYPE TMC2130 \

Loading…
Cancel
Save