Browse Source

NONE on combined options

Scott Lahteine 5 years ago
parent
commit
fe02241044

+ 1
- 1
Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp View File

@@ -55,7 +55,7 @@ void spiBegin(void) {
55 55
   #endif
56 56
 }
57 57
 
58
-#if DISABLED(SOFTWARE_SPI, FORCE_SOFT_SPI)
58
+#if NONE(SOFTWARE_SPI, FORCE_SOFT_SPI)
59 59
 
60 60
   //------------------------------------------------------------------------------
61 61
   // Hardware SPI

+ 1
- 1
Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp View File

@@ -34,7 +34,7 @@
34 34
 #include "../shared/persistent_store_api.h"
35 35
 #include "../../inc/MarlinConfig.h"
36 36
 
37
-#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
37
+#if ENABLED(EEPROM_SETTINGS) && NONE(I2C_EEPROM, SPI_EEPROM)
38 38
 
39 39
 #include "../shared/Marduino.h"
40 40
 

+ 2
- 2
Marlin/src/HAL/HAL_DUE/persistent_store_eeprom.cpp View File

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

+ 4
- 4
Marlin/src/HAL/HAL_STM32/persistent_store_impl.cpp View File

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

+ 1
- 1
Marlin/src/HAL/HAL_STM32F4/EmulatedEeprom.cpp View File

@@ -26,7 +26,7 @@
26 26
 
27 27
 #include "../../inc/MarlinConfig.h"
28 28
 
29
-#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
29
+#if ENABLED(EEPROM_SETTINGS) && NONE(I2C_EEPROM, SPI_EEPROM)
30 30
 
31 31
 // --------------------------------------------------------------------------
32 32
 // Includes

+ 1
- 1
Marlin/src/gcode/feature/pause/M125.cpp View File

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

+ 1
- 1
Marlin/src/gcode/feature/pause/M600.cpp View File

@@ -126,7 +126,7 @@ void GcodeSuite::M600() {
126 126
   if (parser.seenval('X')) park_point.x = parser.linearval('X');
127 127
   if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
128 128
 
129
-  #if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE, DELTA)
129
+  #if HAS_HOTEND_OFFSET && NONE(DUAL_X_CARRIAGE, DELTA)
130 130
     park_point.x += hotend_offset[X_AXIS][active_extruder];
131 131
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
132 132
   #endif

+ 11
- 11
Marlin/src/inc/SanityCheck.h View File

@@ -477,7 +477,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
477 477
 #if ENABLED(MIN_SOFTWARE_ENDSTOPS) && DISABLED(MIN_SOFTWARE_ENDSTOP_Z)
478 478
   #if IS_KINEMATIC
479 479
     #error "MIN_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MIN_SOFTWARE_ENDSTOP_Z."
480
-  #elif DISABLED(MIN_SOFTWARE_ENDSTOP_X, MIN_SOFTWARE_ENDSTOP_Y)
480
+  #elif NONE(MIN_SOFTWARE_ENDSTOP_X, MIN_SOFTWARE_ENDSTOP_Y)
481 481
     #error "MIN_SOFTWARE_ENDSTOPS requires at least one of the MIN_SOFTWARE_ENDSTOP_[XYZ] options."
482 482
   #endif
483 483
 #endif
@@ -485,7 +485,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
485 485
 #if ENABLED(MAX_SOFTWARE_ENDSTOPS) && DISABLED(MAX_SOFTWARE_ENDSTOP_Z)
486 486
   #if IS_KINEMATIC
487 487
     #error "MAX_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MAX_SOFTWARE_ENDSTOP_Z."
488
-  #elif DISABLED(MAX_SOFTWARE_ENDSTOP_X, MAX_SOFTWARE_ENDSTOP_Y)
488
+  #elif NONE(MAX_SOFTWARE_ENDSTOP_X, MAX_SOFTWARE_ENDSTOP_Y)
489 489
     #error "MAX_SOFTWARE_ENDSTOPS requires at least one of the MAX_SOFTWARE_ENDSTOP_[XYZ] options."
490 490
   #endif
491 491
 #endif
@@ -534,7 +534,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
534 534
  * Progress Bar
535 535
  */
536 536
 #if ENABLED(LCD_PROGRESS_BAR)
537
-  #if DISABLED(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
537
+  #if NONE(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
538 538
     #error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
539 539
   #elif !HAS_CHARACTER_LCD
540 540
     #error "LCD_PROGRESS_BAR requires a character LCD."
@@ -646,7 +646,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
646 646
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
647 647
   #elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
648 648
     #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
649
-  #elif DISABLED(SDSUPPORT, PRINTJOB_TIMER_AUTOSTART)
649
+  #elif NONE(SDSUPPORT, PRINTJOB_TIMER_AUTOSTART)
650 650
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
651 651
   #elif FILAMENT_RUNOUT_DISTANCE_MM < 0
652 652
     #error "FILAMENT_RUNOUT_DISTANCE_MM must be greater than or equal to zero."
@@ -663,7 +663,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
663 663
     #error "ADVANCED_PAUSE_FEATURE currently requires an LCD controller or EMERGENCY_PARSER."
664 664
   #elif ENABLED(EXTRUDER_RUNOUT_PREVENT)
665 665
     #error "EXTRUDER_RUNOUT_PREVENT is incompatible with ADVANCED_PAUSE_FEATURE."
666
-  #elif ENABLED(PARK_HEAD_ON_PAUSE) && DISABLED(SDSUPPORT, NEWPANEL, EMERGENCY_PARSER)
666
+  #elif ENABLED(PARK_HEAD_ON_PAUSE) && NONE(SDSUPPORT, NEWPANEL, EMERGENCY_PARSER)
667 667
     #error "PARK_HEAD_ON_PAUSE requires SDSUPPORT, EMERGENCY_PARSER, or an LCD controller."
668 668
   #elif ENABLED(HOME_BEFORE_FILAMENT_CHANGE) && DISABLED(PAUSE_PARK_NO_STEPPER_TIMEOUT)
669 669
     #error "HOME_BEFORE_FILAMENT_CHANGE requires PAUSE_PARK_NO_STEPPER_TIMEOUT."
@@ -983,7 +983,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
983 983
  * Delta requirements
984 984
  */
985 985
 #if ENABLED(DELTA)
986
-  #if DISABLED(USE_XMAX_PLUG, USE_YMAX_PLUG, USE_ZMAX_PLUG)
986
+  #if NONE(USE_XMAX_PLUG, USE_YMAX_PLUG, USE_ZMAX_PLUG)
987 987
     #error "You probably want to use Max Endstops for DELTA!"
988 988
   #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
989 989
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
@@ -1326,7 +1326,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1326 1326
 /**
1327 1327
  * ULTIPANEL encoder
1328 1328
  */
1329
-#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL, SR_LCD_2W_NL) && !defined(SHIFT_CLK)
1329
+#if ENABLED(ULTIPANEL) && NONE(NEWPANEL, SR_LCD_2W_NL) && !defined(SHIFT_CLK)
1330 1330
   #error "ULTIPANEL requires some kind of encoder."
1331 1331
 #endif
1332 1332
 
@@ -1338,7 +1338,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1338 1338
  * SAV_3DGLCD display options
1339 1339
  */
1340 1340
 #if ENABLED(SAV_3DGLCD)
1341
-  #if DISABLED(U8GLIB_SSD1306, U8GLIB_SH1106)
1341
+  #if NONE(U8GLIB_SSD1306, U8GLIB_SH1106)
1342 1342
     #error "Enable a SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
1343 1343
   #elif BOTH(U8GLIB_SSD1306, U8GLIB_SH1106)
1344 1344
     #error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
@@ -1875,7 +1875,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1875 1875
   + ENABLED(FYSETC_MINI_12864_1_2) \
1876 1876
   + ENABLED(FYSETC_MINI_12864_2_0) \
1877 1877
   + ENABLED(FYSETC_MINI_12864_2_1) \
1878
-  + (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI, ZONESTAR_LCD)) \
1878
+  + (ENABLED(REPRAPWORLD_KEYPAD) && NONE(CARTESIO_UI, ZONESTAR_LCD)) \
1879 1879
   + ENABLED(RIGIDBOT_PANEL) \
1880 1880
   + ENABLED(RA_CONTROL_PANEL) \
1881 1881
   + ENABLED(LCD_SAINSMART_I2C_1602) \
@@ -1883,7 +1883,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1883 1883
   + ENABLED(LCM1602) \
1884 1884
   + ENABLED(LCD_I2C_PANELOLU2) \
1885 1885
   + ENABLED(LCD_I2C_VIKI) \
1886
-  + (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2, MKS_12864OLED_SSD1306)) \
1886
+  + (ENABLED(U8GLIB_SSD1306) && NONE(OLED_PANEL_TINYBOY2, MKS_12864OLED_SSD1306)) \
1887 1887
   + ENABLED(SAV_3DLCD) \
1888 1888
   + ENABLED(BQ_LCD_SMART_CONTROLLER) \
1889 1889
   + ENABLED(SAV_3DGLCD) \
@@ -1892,7 +1892,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1892 1892
   + ENABLED(ULTI_CONTROLLER) \
1893 1893
   + ENABLED(MALYAN_LCD) \
1894 1894
   + ENABLED(DGUS_LCD) \
1895
-  + (ENABLED(EXTENSIBLE_UI) && DISABLED(MALYAN_LCD, DGUS_LCD))
1895
+  + (ENABLED(EXTENSIBLE_UI) && NONE(MALYAN_LCD, DGUS_LCD))
1896 1896
   #error "Please select no more than one LCD controller option."
1897 1897
 #endif
1898 1898
 

+ 2
- 2
Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp View File

@@ -112,7 +112,7 @@ static void createChar_P(const char c, const byte * const ptr) {
112 112
 #endif
113 113
 
114 114
 void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
115
-  #if DISABLED(LCD_PROGRESS_BAR, SHOW_BOOTSCREEN)
115
+  #if NONE(LCD_PROGRESS_BAR, SHOW_BOOTSCREEN)
116 116
     UNUSED(screen_charset);
117 117
   #endif
118 118
 
@@ -516,7 +516,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
516 516
     if (!TEST(axis_homed, axis))
517 517
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
518 518
     else {
519
-      #if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
519
+      #if NONE(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
520 520
         if (!TEST(axis_known_position, axis))
521 521
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("       ") : PSTR("    "));
522 522
         else

+ 1
- 1
Marlin/src/lcd/dogm/status_screen_DOGM.cpp View File

@@ -271,7 +271,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
271 271
     if (!TEST(axis_homed, axis))
272 272
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
273 273
     else {
274
-      #if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
274
+      #if NONE(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
275 275
         if (!TEST(axis_known_position, axis))
276 276
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("       ") : PSTR("    "));
277 277
         else

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

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

+ 1
- 1
Marlin/src/module/probe.cpp View File

@@ -319,7 +319,7 @@ float zprobe_zoffset; // Initialized by settings.load()
319 319
     #endif
320 320
     #if ENABLED(PROBING_STEPPERS_OFF)
321 321
       disable_e_steppers();
322
-      #if DISABLED(DELTA, HOME_AFTER_DEACTIVATE)
322
+      #if NONE(DELTA, HOME_AFTER_DEACTIVATE)
323 323
         disable_X(); disable_Y();
324 324
       #endif
325 325
     #endif

+ 1
- 1
Marlin/src/pins/pins_EINSTART-S.h View File

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

+ 1
- 1
Marlin/src/pins/pins_FORMBOT_RAPTOR.h View File

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

+ 1
- 1
Marlin/src/pins/pins_FORMBOT_TREX2PLUS.h View File

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS.h View File

@@ -51,7 +51,7 @@
51 51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
52 52
 #endif
53 53
 
54
-#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
54
+#if NONE(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
55 55
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
56 56
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
57 57
   #endif
@@ -171,7 +171,7 @@
171 171
 //
172 172
 // Augmentation for auto-assigning RAMPS plugs
173 173
 //
174
-#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
174
+#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
175 175
   #if HOTENDS > 1
176 176
     #if TEMP_SENSOR_BED
177 177
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/pins_RAMPS_LINUX.h View File

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

+ 1
- 1
Marlin/src/pins/pins_RAMPS_RE_ARM.h View File

@@ -152,7 +152,7 @@
152 152
 //
153 153
 // Augmentation for auto-assigning RAMPS plugs
154 154
 //
155
-#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
155
+#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
156 156
   #if HOTENDS > 1
157 157
     #if TEMP_SENSOR_BED
158 158
       #define IS_RAMPS_EEB

+ 1
- 1
Marlin/src/pins/pins_Z_BOLT_X_SERIES.h View File

@@ -37,7 +37,7 @@
37 37
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
38 38
 #endif
39 39
 
40
-#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
40
+#if NONE(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
41 41
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
42 42
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
43 43
   #endif

+ 1
- 1
Marlin/src/pins/sensitive_pins.h View File

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

+ 1
- 1
Marlin/src/sd/Sd2Card.cpp View File

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

Loading…
Cancel
Save