Browse Source

Fix up conditions, comments

Scott Lahteine 3 years ago
parent
commit
b36163d53a

+ 7
- 13
Marlin/src/inc/SanityCheck.h View File

@@ -39,26 +39,20 @@
39 39
 #define TEST2 1
40 40
 #define TEST3 0
41 41
 #define TEST4 true
42
-#if ENABLED(TEST0)
42
+#if ENABLED(TEST0) || !ENABLED(TEST2) || ENABLED(TEST3)
43 43
   #error "ENABLED is borked!"
44 44
 #endif
45
-#if DISABLED(TEST1)
46
-  #error "DISABLED is borked!"
47
-#endif
48
-#if !ENABLED(TEST2)
49
-  #error "ENABLED is borked!"
45
+#if BOTH(TEST0, TEST1)
46
+  #error "BOTH is borked!"
50 47
 #endif
51
-#if ENABLED(TEST3)
52
-  #error "ENABLED is borked!"
53
-#endif
54
-#if DISABLED(TEST4)
48
+#if DISABLED(TEST1) || !DISABLED(TEST3) || DISABLED(TEST4) || DISABLED(TEST0, TEST1, TEST2, TEST4) || !DISABLED(TEST0, TEST3)
55 49
   #error "DISABLED is borked!"
56 50
 #endif
57 51
 #if !ANY(TEST1, TEST2, TEST3, TEST4) || ANY(TEST0, TEST3)
58 52
   #error "ANY is borked!"
59 53
 #endif
60
-#if DISABLED(TEST0, TEST1, TEST2, TEST4)
61
-  #error "DISABLED is borked!"
54
+#if NONE(TEST0, TEST1, TEST2, TEST4) || !NONE(TEST0, TEST3)
55
+  #error "NONE is borked!"
62 56
 #endif
63 57
 #undef TEST1
64 58
 #undef TEST2
@@ -2202,7 +2196,7 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
2202 2196
   + (ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && DISABLED(IS_RRD_FG_SC)) \
2203 2197
   + (ENABLED(ULTRA_LCD) && DISABLED(IS_ULTRA_LCD)) \
2204 2198
   + (ENABLED(U8GLIB_SSD1306) && DISABLED(IS_U8GLIB_SSD1306)) \
2205
-  + (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864, ENDER2_STOCKDISPLAY)) \
2199
+  + (ENABLED(MINIPANEL) && NONE(MKS_MINI_12864, ENDER2_STOCKDISPLAY)) \
2206 2200
   + (ENABLED(MKS_MINI_12864) && DISABLED(MKS_LCD12864)) \
2207 2201
   + (ENABLED(EXTENSIBLE_UI) && DISABLED(IS_EXTUI)) \
2208 2202
   + (ENABLED(ULTIPANEL) && DISABLED(IS_ULTIPANEL)) \

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h View File

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

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h View File

@@ -174,7 +174,7 @@
174 174
   #define LCD_PINS_D6                         32
175 175
   #define LCD_PINS_D7                         30
176 176
 
177
-#elif ENABLED(BOARD_REV_1_5, ULTRA_LCD)
177
+#elif BOTH(BOARD_REV_1_5, ULTRA_LCD)
178 178
 
179 179
   #define BEEPER_PIN                          18
180 180
 

+ 1
- 1
buildroot/share/vscode/avrdude.conf View File

@@ -151,7 +151,7 @@
151 151
 #
152 152
 # INSTRUCTION FORMATS
153 153
 #
154
-#    Instruction formats are specified as a comma seperated list of
154
+#    Instruction formats are specified as a comma separated list of
155 155
 #    string values containing information (bit specifiers) about each
156 156
 #    of the 32 bits of the instruction.  Bit specifiers may be one of
157 157
 #    the following formats:

+ 1
- 1
buildroot/share/vscode/avrdude_linux.conf View File

@@ -151,7 +151,7 @@
151 151
 #
152 152
 # INSTRUCTION FORMATS
153 153
 #
154
-#    Instruction formats are specified as a comma seperated list of
154
+#    Instruction formats are specified as a comma separated list of
155 155
 #    string values containing information (bit specifiers) about each
156 156
 #    of the 32 bits of the instruction.  Bit specifiers may be one of
157 157
 #    the following formats:

+ 1
- 1
buildroot/share/vscode/avrdude_macOS.conf View File

@@ -151,7 +151,7 @@
151 151
 #
152 152
 # INSTRUCTION FORMATS
153 153
 #
154
-#    Instruction formats are specified as a comma seperated list of
154
+#    Instruction formats are specified as a comma separated list of
155 155
 #    string values containing information (bit specifiers) about each
156 156
 #    of the 32 bits of the instruction.  Bit specifiers may be one of
157 157
 #    the following formats:

Loading…
Cancel
Save