We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 265493d commit 6862ec8Copy full SHA for 6862ec8
Marlin/src/pins/mega/env_validate.h
@@ -21,10 +21,12 @@
21
*/
22
#pragma once
23
24
-#if ENABLED(ALLOW_MEGA1280) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
25
- #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
26
-#elif NOT_TARGET(__AVR_ATmega2560__)
27
- #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
+#if NOT_TARGET(__AVR_ATmega2560__)
+ #if DISABLED(ALLOW_MEGA1280)
+ #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
+ #elif NOT_TARGET(__AVR_ATmega1280__)
28
+ #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
29
+ #endif
30
#endif
31
32
#undef ALLOW_MEGA1280
0 commit comments