Browse Source

NONE on combined options

Scott Lahteine 6 years ago
parent
commit
fe02241044

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

55
   #endif
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
   // Hardware SPI
61
   // Hardware SPI

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

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, SPI_EEPROM)
37
+#if ENABLED(EEPROM_SETTINGS) && NONE(I2C_EEPROM, SPI_EEPROM)
38
 
38
 
39
 #include "../shared/Marduino.h"
39
 #include "../shared/Marduino.h"
40
 
40
 

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

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, SPI_EEPROM)
32
+#if NONE(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, SPI_EEPROM)
41
+  #if NONE(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 View File

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, SPI_EEPROM, I2C_EEPROM)
31
+#if NONE(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, SPI_EEPROM, I2C_EEPROM)
37
+  #if NONE(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, SPI_EEPROM, I2C_EEPROM)
44
+  #if NONE(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, SPI_EEPROM, I2C_EEPROM)
79
+  #if NONE(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
80
     eeprom_data_written = true;
80
     eeprom_data_written = true;
81
   #endif
81
   #endif
82
 
82
 

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

26
 
26
 
27
 #include "../../inc/MarlinConfig.h"
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
 // Includes
32
 // Includes

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

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, DELTA)
70
+  #if HAS_HOTEND_OFFSET && NONE(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 View File

126
   if (parser.seenval('X')) park_point.x = parser.linearval('X');
126
   if (parser.seenval('X')) park_point.x = parser.linearval('X');
127
   if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
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
     park_point.x += hotend_offset[X_AXIS][active_extruder];
130
     park_point.x += hotend_offset[X_AXIS][active_extruder];
131
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
131
     park_point.y += hotend_offset[Y_AXIS][active_extruder];
132
   #endif
132
   #endif

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

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

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

112
 #endif
112
 #endif
113
 
113
 
114
 void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
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
     UNUSED(screen_charset);
116
     UNUSED(screen_charset);
117
   #endif
117
   #endif
118
 
118
 
516
     if (!TEST(axis_homed, axis))
516
     if (!TEST(axis_homed, axis))
517
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
517
       while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
518
     else {
518
     else {
519
-      #if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
519
+      #if NONE(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
520
         if (!TEST(axis_known_position, axis))
520
         if (!TEST(axis_known_position, axis))
521
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("       ") : PSTR("    "));
521
           lcd_put_u8str_P(axis == Z_AXIS ? PSTR("       ") : PSTR("    "));
522
         else
522
         else

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

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

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

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, MESH_BED_LEVELING)
242
+  #if NONE(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/module/probe.cpp View File

319
     #endif
319
     #endif
320
     #if ENABLED(PROBING_STEPPERS_OFF)
320
     #if ENABLED(PROBING_STEPPERS_OFF)
321
       disable_e_steppers();
321
       disable_e_steppers();
322
-      #if DISABLED(DELTA, HOME_AFTER_DEACTIVATE)
322
+      #if NONE(DELTA, HOME_AFTER_DEACTIVATE)
323
         disable_X(); disable_Y();
323
         disable_X(); disable_Y();
324
       #endif
324
       #endif
325
     #endif
325
     #endif

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

32
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
32
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
33
 #endif
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
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
36
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
37
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
37
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
38
   #endif
38
   #endif

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

125
 //
125
 //
126
 // Augmentation for auto-assigning RAMPS plugs
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
   #if HOTENDS > 1
129
   #if HOTENDS > 1
130
     #if TEMP_SENSOR_BED
130
     #if TEMP_SENSOR_BED
131
       #define IS_RAMPS_EEB
131
       #define IS_RAMPS_EEB

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

122
 //
122
 //
123
 // Augmentation for auto-assigning RAMPS plugs
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
   #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

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

51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
52
 #endif
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
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
55
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
56
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
56
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
57
   #endif
57
   #endif
171
 //
171
 //
172
 // Augmentation for auto-assigning RAMPS plugs
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
   #if HOTENDS > 1
175
   #if HOTENDS > 1
176
     #if TEMP_SENSOR_BED
176
     #if TEMP_SENSOR_BED
177
       #define IS_RAMPS_EEB
177
       #define IS_RAMPS_EEB

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

139
 //
139
 //
140
 // Augmentation for auto-assigning RAMPS plugs
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
   #if HOTENDS > 1
143
   #if HOTENDS > 1
144
     #if TEMP_SENSOR_BED
144
     #if TEMP_SENSOR_BED
145
       #define IS_RAMPS_EEB
145
       #define IS_RAMPS_EEB

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

152
 //
152
 //
153
 // Augmentation for auto-assigning RAMPS plugs
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
   #if HOTENDS > 1
156
   #if HOTENDS > 1
157
     #if TEMP_SENSOR_BED
157
     #if TEMP_SENSOR_BED
158
       #define IS_RAMPS_EEB
158
       #define IS_RAMPS_EEB

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

37
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
37
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
38
 #endif
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
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
41
   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
42
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
42
     #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
43
   #endif
43
   #endif

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

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, MIXING_EXTRUDER) && EXTRUDERS > N)
134
+                 || (NONE(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 View File

30
 
30
 
31
 #include "../inc/MarlinConfig.h"
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
 /* 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…
Cancel
Save