Selaa lähdekoodia

Group DISABLED items

Scott Lahteine 6 vuotta sitten
vanhempi
commit
b376c7e374

+ 2
- 2
Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp Näytä tiedosto

34
 #include "../shared/persistent_store_api.h"
34
 #include "../shared/persistent_store_api.h"
35
 #include "../../inc/MarlinConfig.h"
35
 #include "../../inc/MarlinConfig.h"
36
 
36
 
37
-#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
37
+#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
38
 
38
 
39
 #include <Arduino.h>
39
 #include <Arduino.h>
40
 
40
 
997
   ee_Flush();
997
   ee_Flush();
998
 }
998
 }
999
 
999
 
1000
-#endif // ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
1000
+#endif // EEPROM_SETTINGS && (!I2C_EEPROM && !SPI_EEPROM)
1001
 #endif // ARDUINO_ARCH_AVR
1001
 #endif // ARDUINO_ARCH_AVR

+ 2
- 2
Marlin/src/HAL/HAL_DUE/persistent_store_eeprom.cpp Näytä tiedosto

29
 #include "../../inc/MarlinConfig.h"
29
 #include "../../inc/MarlinConfig.h"
30
 #include "../shared/persistent_store_api.h"
30
 #include "../shared/persistent_store_api.h"
31
 
31
 
32
-#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
32
+#if DISABLED(I2C_EEPROM, SPI_EEPROM)
33
   #define E2END 0xFFF // Default to Flash emulated EEPROM size (EepromEmulation_Due.cpp)
33
   #define E2END 0xFFF // Default to Flash emulated EEPROM size (EepromEmulation_Due.cpp)
34
 #endif
34
 #endif
35
 
35
 
38
 bool PersistentStore::access_start() { return true; }
38
 bool PersistentStore::access_start() { return true; }
39
 
39
 
40
 bool PersistentStore::access_finish() {
40
 bool PersistentStore::access_finish() {
41
-  #if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
41
+  #if DISABLED(I2C_EEPROM, SPI_EEPROM)
42
     eeprom_flush();
42
     eeprom_flush();
43
   #endif
43
   #endif
44
   return true;
44
   return true;

+ 4
- 4
Marlin/src/HAL/HAL_STM32/persistent_store_impl.cpp Näytä tiedosto

28
 
28
 
29
 #include "../shared/persistent_store_api.h"
29
 #include "../shared/persistent_store_api.h"
30
 
30
 
31
-#if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
31
+#if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
32
   #include <EEPROM.h>
32
   #include <EEPROM.h>
33
   static bool eeprom_data_written = false;
33
   static bool eeprom_data_written = false;
34
 #endif
34
 #endif
35
 
35
 
36
 bool PersistentStore::access_start() {
36
 bool PersistentStore::access_start() {
37
-  #if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
37
+  #if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
38
     eeprom_buffer_fill();
38
     eeprom_buffer_fill();
39
   #endif
39
   #endif
40
   return true;
40
   return true;
41
 }
41
 }
42
 
42
 
43
 bool PersistentStore::access_finish() {
43
 bool PersistentStore::access_finish() {
44
-  #if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
44
+  #if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
45
     if (eeprom_data_written) {
45
     if (eeprom_data_written) {
46
       eeprom_buffer_flush();
46
       eeprom_buffer_flush();
47
       eeprom_data_written = false;
47
       eeprom_data_written = false;
76
     pos++;
76
     pos++;
77
     value++;
77
     value++;
78
   };
78
   };
79
-  #if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
79
+  #if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
80
     eeprom_data_written = true;
80
     eeprom_data_written = true;
81
   #endif
81
   #endif
82
 
82
 

+ 2
- 2
Marlin/src/HAL/HAL_STM32F4/EmulatedEeprom.cpp Näytä tiedosto

26
 
26
 
27
 #include "../../inc/MarlinConfig.h"
27
 #include "../../inc/MarlinConfig.h"
28
 
28
 
29
-#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
29
+#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
30
 
30
 
31
 // --------------------------------------------------------------------------
31
 // --------------------------------------------------------------------------
32
 // Includes
32
 // Includes
138
 
138
 
139
 }
139
 }
140
 
140
 
141
-#endif // ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
141
+#endif // EEPROM_SETTINGS && (!I2C_EEPROM && !SPI_EEPROM)
142
 #endif // STM32GENERIC && STM32F4
142
 #endif // STM32GENERIC && STM32F4

+ 1
- 1
Marlin/src/gcode/feature/pause/M125.cpp Näytä tiedosto

67
   // Lift Z axis
67
   // Lift Z axis
68
   if (parser.seenval('Z')) park_point.z = parser.linearval('Z');
68
   if (parser.seenval('Z')) park_point.z = parser.linearval('Z');
69
 
69
 
70
-  #if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE) && DISABLED(DELTA)
70
+  #if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE, DELTA)
71
     park_point.x += hotend_offset[X_AXIS][active_extruder];
71
     park_point.x += hotend_offset[X_AXIS][active_extruder];
72
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
72
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
73
   #endif
73
   #endif

+ 1
- 1
Marlin/src/gcode/feature/pause/M600.cpp Näytä tiedosto

109
   if (parser.seenval('X')) park_point.x = parser.linearval('X');
109
   if (parser.seenval('X')) park_point.x = parser.linearval('X');
110
   if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
110
   if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
111
 
111
 
112
-  #if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE) && DISABLED(DELTA)
112
+  #if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE, DELTA)
113
     park_point.x += hotend_offset[X_AXIS][active_extruder];
113
     park_point.x += hotend_offset[X_AXIS][active_extruder];
114
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
114
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
115
   #endif
115
   #endif

+ 11
- 11
Marlin/src/inc/SanityCheck.h Näytä tiedosto

438
 #if ENABLED(MIN_SOFTWARE_ENDSTOPS) && DISABLED(MIN_SOFTWARE_ENDSTOP_Z)
438
 #if ENABLED(MIN_SOFTWARE_ENDSTOPS) && DISABLED(MIN_SOFTWARE_ENDSTOP_Z)
439
   #if IS_KINEMATIC
439
   #if IS_KINEMATIC
440
     #error "MIN_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MIN_SOFTWARE_ENDSTOP_Z."
440
     #error "MIN_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MIN_SOFTWARE_ENDSTOP_Z."
441
-  #elif DISABLED(MIN_SOFTWARE_ENDSTOP_X) && DISABLED(MIN_SOFTWARE_ENDSTOP_Y)
441
+  #elif DISABLED(MIN_SOFTWARE_ENDSTOP_X, MIN_SOFTWARE_ENDSTOP_Y)
442
     #error "MIN_SOFTWARE_ENDSTOPS requires at least one of the MIN_SOFTWARE_ENDSTOP_[XYZ] options."
442
     #error "MIN_SOFTWARE_ENDSTOPS requires at least one of the MIN_SOFTWARE_ENDSTOP_[XYZ] options."
443
   #endif
443
   #endif
444
 #endif
444
 #endif
446
 #if ENABLED(MAX_SOFTWARE_ENDSTOPS) && DISABLED(MAX_SOFTWARE_ENDSTOP_Z)
446
 #if ENABLED(MAX_SOFTWARE_ENDSTOPS) && DISABLED(MAX_SOFTWARE_ENDSTOP_Z)
447
   #if IS_KINEMATIC
447
   #if IS_KINEMATIC
448
     #error "MAX_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MAX_SOFTWARE_ENDSTOP_Z."
448
     #error "MAX_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MAX_SOFTWARE_ENDSTOP_Z."
449
-  #elif DISABLED(MAX_SOFTWARE_ENDSTOP_X) && DISABLED(MAX_SOFTWARE_ENDSTOP_Y)
449
+  #elif DISABLED(MAX_SOFTWARE_ENDSTOP_X, MAX_SOFTWARE_ENDSTOP_Y)
450
     #error "MAX_SOFTWARE_ENDSTOPS requires at least one of the MAX_SOFTWARE_ENDSTOP_[XYZ] options."
450
     #error "MAX_SOFTWARE_ENDSTOPS requires at least one of the MAX_SOFTWARE_ENDSTOP_[XYZ] options."
451
   #endif
451
   #endif
452
 #endif
452
 #endif
495
  * Progress Bar
495
  * Progress Bar
496
  */
496
  */
497
 #if ENABLED(LCD_PROGRESS_BAR)
497
 #if ENABLED(LCD_PROGRESS_BAR)
498
-  #if DISABLED(SDSUPPORT) && DISABLED(LCD_SET_PROGRESS_MANUALLY)
498
+  #if DISABLED(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
499
     #error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
499
     #error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
500
   #elif !HAS_CHARACTER_LCD
500
   #elif !HAS_CHARACTER_LCD
501
     #error "LCD_PROGRESS_BAR requires a character LCD."
501
     #error "LCD_PROGRESS_BAR requires a character LCD."
603
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
603
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
604
   #elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
604
   #elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
605
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
605
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
606
-  #elif DISABLED(SDSUPPORT) && DISABLED(PRINTJOB_TIMER_AUTOSTART)
606
+  #elif DISABLED(SDSUPPORT, PRINTJOB_TIMER_AUTOSTART)
607
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
607
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
608
   #elif DISABLED(ADVANCED_PAUSE_FEATURE)
608
   #elif DISABLED(ADVANCED_PAUSE_FEATURE)
609
     static_assert(NULL == strstr(FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with FILAMENT_RUNOUT_SENSOR.");
609
     static_assert(NULL == strstr(FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with FILAMENT_RUNOUT_SENSOR.");
618
     #error "ADVANCED_PAUSE_FEATURE currently requires an LCD controller or EMERGENCY_PARSER."
618
     #error "ADVANCED_PAUSE_FEATURE currently requires an LCD controller or EMERGENCY_PARSER."
619
   #elif ENABLED(EXTRUDER_RUNOUT_PREVENT)
619
   #elif ENABLED(EXTRUDER_RUNOUT_PREVENT)
620
     #error "EXTRUDER_RUNOUT_PREVENT is incompatible with ADVANCED_PAUSE_FEATURE."
620
     #error "EXTRUDER_RUNOUT_PREVENT is incompatible with ADVANCED_PAUSE_FEATURE."
621
-  #elif ENABLED(PARK_HEAD_ON_PAUSE) && DISABLED(SDSUPPORT) && DISABLED(NEWPANEL) && DISABLED(EMERGENCY_PARSER)
621
+  #elif ENABLED(PARK_HEAD_ON_PAUSE) && DISABLED(SDSUPPORT, NEWPANEL, EMERGENCY_PARSER)
622
     #error "PARK_HEAD_ON_PAUSE requires SDSUPPORT, EMERGENCY_PARSER, or an LCD controller."
622
     #error "PARK_HEAD_ON_PAUSE requires SDSUPPORT, EMERGENCY_PARSER, or an LCD controller."
623
   #elif ENABLED(HOME_BEFORE_FILAMENT_CHANGE) && DISABLED(PAUSE_PARK_NO_STEPPER_TIMEOUT)
623
   #elif ENABLED(HOME_BEFORE_FILAMENT_CHANGE) && DISABLED(PAUSE_PARK_NO_STEPPER_TIMEOUT)
624
     #error "HOME_BEFORE_FILAMENT_CHANGE requires PAUSE_PARK_NO_STEPPER_TIMEOUT."
624
     #error "HOME_BEFORE_FILAMENT_CHANGE requires PAUSE_PARK_NO_STEPPER_TIMEOUT."
935
  * Delta requirements
935
  * Delta requirements
936
  */
936
  */
937
 #if ENABLED(DELTA)
937
 #if ENABLED(DELTA)
938
-  #if DISABLED(USE_XMAX_PLUG) && DISABLED(USE_YMAX_PLUG) && DISABLED(USE_ZMAX_PLUG)
938
+  #if DISABLED(USE_XMAX_PLUG, USE_YMAX_PLUG, USE_ZMAX_PLUG)
939
     #error "You probably want to use Max Endstops for DELTA!"
939
     #error "You probably want to use Max Endstops for DELTA!"
940
   #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
940
   #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
941
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
941
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
1241
 /**
1241
 /**
1242
  * ULTIPANEL encoder
1242
  * ULTIPANEL encoder
1243
  */
1243
  */
1244
-#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL) && DISABLED(SR_LCD_2W_NL) && !defined(SHIFT_CLK)
1244
+#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL, SR_LCD_2W_NL) && !defined(SHIFT_CLK)
1245
   #error "ULTIPANEL requires some kind of encoder."
1245
   #error "ULTIPANEL requires some kind of encoder."
1246
 #endif
1246
 #endif
1247
 
1247
 
1253
  * SAV_3DGLCD display options
1253
  * SAV_3DGLCD display options
1254
  */
1254
  */
1255
 #if ENABLED(SAV_3DGLCD)
1255
 #if ENABLED(SAV_3DGLCD)
1256
-  #if DISABLED(U8GLIB_SSD1306) && DISABLED(U8GLIB_SH1106)
1256
+  #if DISABLED(U8GLIB_SSD1306, U8GLIB_SH1106)
1257
     #error "Enable a SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
1257
     #error "Enable a SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
1258
   #elif BOTH(U8GLIB_SSD1306, U8GLIB_SH1106)
1258
   #elif BOTH(U8GLIB_SSD1306, U8GLIB_SH1106)
1259
     #error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
1259
     #error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
1502
  * Endstop Tests
1502
  * Endstop Tests
1503
  */
1503
  */
1504
 
1504
 
1505
-#define _PLUG_UNUSED_TEST(AXIS,PLUG) (DISABLED(USE_##PLUG##MIN_PLUG) && DISABLED(USE_##PLUG##MAX_PLUG) && !(ENABLED(AXIS##_DUAL_ENDSTOPS) && WITHIN(AXIS##2_USE_ENDSTOP, _##PLUG##MAX_, _##PLUG##MIN_)))
1505
+#define _PLUG_UNUSED_TEST(AXIS,PLUG) (DISABLED(USE_##PLUG##MIN_PLUG, USE_##PLUG##MAX_PLUG) && !(ENABLED(AXIS##_DUAL_ENDSTOPS) && WITHIN(AXIS##2_USE_ENDSTOP, _##PLUG##MAX_, _##PLUG##MIN_)))
1506
 #define _AXIS_PLUG_UNUSED_TEST(AXIS) (_PLUG_UNUSED_TEST(AXIS,X) && _PLUG_UNUSED_TEST(AXIS,Y) && _PLUG_UNUSED_TEST(AXIS,Z))
1506
 #define _AXIS_PLUG_UNUSED_TEST(AXIS) (_PLUG_UNUSED_TEST(AXIS,X) && _PLUG_UNUSED_TEST(AXIS,Y) && _PLUG_UNUSED_TEST(AXIS,Z))
1507
 
1507
 
1508
 // At least 3 endstop plugs must be used
1508
 // At least 3 endstop plugs must be used
1758
   + ENABLED(G3D_PANEL) \
1758
   + ENABLED(G3D_PANEL) \
1759
   + (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)) \
1759
   + (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)) \
1760
   + ENABLED(MKS_MINI_12864) \
1760
   + ENABLED(MKS_MINI_12864) \
1761
-  + (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI) && DISABLED(ZONESTAR_LCD)) \
1761
+  + (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI, ZONESTAR_LCD)) \
1762
   + ENABLED(RIGIDBOT_PANEL) \
1762
   + ENABLED(RIGIDBOT_PANEL) \
1763
   + ENABLED(RA_CONTROL_PANEL) \
1763
   + ENABLED(RA_CONTROL_PANEL) \
1764
   + ENABLED(LCD_SAINSMART_I2C_1602) \
1764
   + ENABLED(LCD_SAINSMART_I2C_1602) \
1766
   + ENABLED(LCM1602) \
1766
   + ENABLED(LCM1602) \
1767
   + ENABLED(LCD_I2C_PANELOLU2) \
1767
   + ENABLED(LCD_I2C_PANELOLU2) \
1768
   + ENABLED(LCD_I2C_VIKI) \
1768
   + ENABLED(LCD_I2C_VIKI) \
1769
-  + (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2) && DISABLED(MKS_12864OLED_SSD1306)) \
1769
+  + (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2, MKS_12864OLED_SSD1306)) \
1770
   + ENABLED(SAV_3DLCD) \
1770
   + ENABLED(SAV_3DLCD) \
1771
   + ENABLED(BQ_LCD_SMART_CONTROLLER) \
1771
   + ENABLED(BQ_LCD_SMART_CONTROLLER) \
1772
   + ENABLED(SAV_3DGLCD) \
1772
   + ENABLED(SAV_3DGLCD) \

+ 2
- 2
Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp Näytä tiedosto

111
 #endif
111
 #endif
112
 
112
 
113
 void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
113
 void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
114
-  #if DISABLED(LCD_PROGRESS_BAR) && DISABLED(SHOW_BOOTSCREEN)
114
+  #if DISABLED(LCD_PROGRESS_BAR, SHOW_BOOTSCREEN)
115
     UNUSED(screen_charset);
115
     UNUSED(screen_charset);
116
   #endif
116
   #endif
117
 
117
 
515
     if (!TEST(axis_homed, axis))
515
     if (!TEST(axis_homed, axis))
516
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
516
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
517
     else {
517
     else {
518
-      #if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
518
+      #if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
519
         if (!TEST(axis_known_position, axis))
519
         if (!TEST(axis_known_position, axis))
520
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("      ") : PSTR("    "));
520
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("      ") : PSTR("    "));
521
         else
521
         else

+ 1
- 1
Marlin/src/lcd/dogm/status_screen_DOGM.cpp Näytä tiedosto

243
     if (!TEST(axis_homed, axis))
243
     if (!TEST(axis_homed, axis))
244
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
244
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
245
     else {
245
     else {
246
-      #if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
246
+      #if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
247
         if (!TEST(axis_known_position, axis))
247
         if (!TEST(axis_known_position, axis))
248
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("      ") : PSTR("    "));
248
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("      ") : PSTR("    "));
249
         else
249
         else

+ 1
- 1
Marlin/src/lcd/menu/menu_bed_leveling.cpp Näytä tiedosto

239
   const bool is_homed = all_axes_known();
239
   const bool is_homed = all_axes_known();
240
 
240
 
241
   // Auto Home if not using manual probing
241
   // Auto Home if not using manual probing
242
-  #if DISABLED(PROBE_MANUALLY) && DISABLED(MESH_BED_LEVELING)
242
+  #if DISABLED(PROBE_MANUALLY, MESH_BED_LEVELING)
243
     if (!is_homed) MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
243
     if (!is_homed) MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
244
   #endif
244
   #endif
245
 
245
 

+ 1
- 1
Marlin/src/pins/pins_EINSTART-S.h Näytä tiedosto

31
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
31
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
32
 #endif
32
 #endif
33
 
33
 
34
-#if DISABLED(IS_RAMPS_SMART) && DISABLED(IS_RAMPS_DUO) && DISABLED(IS_RAMPS4DUE) && DISABLED(TARGET_LPC1768)
34
+#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
35
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
35
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
36
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
36
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
37
   #endif
37
   #endif

+ 1
- 1
Marlin/src/pins/pins_FORMBOT_RAPTOR.h Näytä tiedosto

124
 //
124
 //
125
 // Augmentation for auto-assigning RAMPS plugs
125
 // Augmentation for auto-assigning RAMPS plugs
126
 //
126
 //
127
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
127
+#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
128
   #if HOTENDS > 1
128
   #if HOTENDS > 1
129
     #if TEMP_SENSOR_BED
129
     #if TEMP_SENSOR_BED
130
       #define IS_RAMPS_EEB
130
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/pins_FORMBOT_TREX2PLUS.h Näytä tiedosto

121
 //
121
 //
122
 // Augmentation for auto-assigning RAMPS plugs
122
 // Augmentation for auto-assigning RAMPS plugs
123
 //
123
 //
124
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
124
+#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
125
   #if HOTENDS > 1
125
   #if HOTENDS > 1
126
     #if TEMP_SENSOR_BED
126
     #if TEMP_SENSOR_BED
127
       #define IS_RAMPS_EEB
127
       #define IS_RAMPS_EEB

+ 2
- 2
Marlin/src/pins/pins_RAMPS.h Näytä tiedosto

50
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
50
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
51
 #endif
51
 #endif
52
 
52
 
53
-#if DISABLED(IS_RAMPS_SMART) && DISABLED(IS_RAMPS_DUO) && DISABLED(IS_RAMPS4DUE) && DISABLED(TARGET_LPC1768)
53
+#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
54
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
54
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
55
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
55
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
56
   #endif
56
   #endif
148
 //
148
 //
149
 // Augmentation for auto-assigning RAMPS plugs
149
 // Augmentation for auto-assigning RAMPS plugs
150
 //
150
 //
151
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
151
+#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
152
   #if HOTENDS > 1
152
   #if HOTENDS > 1
153
     #if TEMP_SENSOR_BED
153
     #if TEMP_SENSOR_BED
154
       #define IS_RAMPS_EEB
154
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/pins_RAMPS_LINUX.h Näytä tiedosto

138
 //
138
 //
139
 // Augmentation for auto-assigning RAMPS plugs
139
 // Augmentation for auto-assigning RAMPS plugs
140
 //
140
 //
141
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
141
+#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
142
   #if HOTENDS > 1
142
   #if HOTENDS > 1
143
     #if TEMP_SENSOR_BED
143
     #if TEMP_SENSOR_BED
144
       #define IS_RAMPS_EEB
144
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/pins_RAMPS_PLUS.h Näytä tiedosto

73
 #undef E0_CS_PIN
73
 #undef E0_CS_PIN
74
 #undef E1_CS_PIN
74
 #undef E1_CS_PIN
75
 
75
 
76
-#if ENABLED(ULTRA_LCD) && DISABLED(REPRAPWORLD_GRAPHICAL_LCD) && !BOTH(NEWPANEL, PANEL_ONE) && DISABLED(CR10_STOCKDISPLAY)
76
+#if ENABLED(ULTRA_LCD, REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(NEWPANEL, PANEL_ONE)
77
   #if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
77
   #if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
78
     #undef LCD_PINS_RS
78
     #undef LCD_PINS_RS
79
     #define LCD_PINS_RS     42   // 3DYMY boards pin 16 -> 42
79
     #define LCD_PINS_RS     42   // 3DYMY boards pin 16 -> 42

+ 1
- 1
Marlin/src/pins/pins_RAMPS_RE_ARM.h Näytä tiedosto

122
 //
122
 //
123
 // Augmentation for auto-assigning RAMPS plugs
123
 // Augmentation for auto-assigning RAMPS plugs
124
 //
124
 //
125
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
125
+#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
126
   #if HOTENDS > 1
126
   #if HOTENDS > 1
127
     #if TEMP_SENSOR_BED
127
     #if TEMP_SENSOR_BED
128
       #define IS_RAMPS_EEB
128
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/sensitive_pins.h Näytä tiedosto

131
 // Mixing stepper, Switching stepper, or regular stepper
131
 // Mixing stepper, Switching stepper, or regular stepper
132
 #define E_NEEDED(N) (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > N) \
132
 #define E_NEEDED(N) (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > N) \
133
                  || (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
133
                  || (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
134
-                 || (DISABLED(SWITCHING_EXTRUDER) && DISABLED(MIXING_EXTRUDER) && EXTRUDERS > N)
134
+                 || (DISABLED(SWITCHING_EXTRUDER, MIXING_EXTRUDER) && EXTRUDERS > N)
135
 
135
 
136
 #define _E0_CS
136
 #define _E0_CS
137
 #define _E0_MS1
137
 #define _E0_MS1

+ 1
- 1
Marlin/src/sd/Sd2Card.cpp Näytä tiedosto

30
 
30
 
31
 #include "../inc/MarlinConfig.h"
31
 #include "../inc/MarlinConfig.h"
32
 
32
 
33
-#if ENABLED(SDSUPPORT) && DISABLED(USB_FLASH_DRIVE_SUPPORT) && DISABLED(SDIO_SUPPORT)
33
+#if ENABLED(SDSUPPORT) && DISABLED(USB_FLASH_DRIVE_SUPPORT, SDIO_SUPPORT)
34
 
34
 
35
 /* Enable FAST CRC computations - You can trade speed for FLASH space if
35
 /* Enable FAST CRC computations - You can trade speed for FLASH space if
36
  * needed by disabling the following define */
36
  * needed by disabling the following define */

Loading…
Peruuta
Tallenna