🐛 Fix env validation for 1280/2560 boards (#22150)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
e38958f256
commit
d8df8e0eed
|
@ -21,10 +21,12 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#if ENABLED(ALLOW_MEGA1280) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
|
||||
#elif NOT_TARGET(__AVR_ATmega2560__)
|
||||
#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__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#undef ALLOW_MEGA1280
|
||||
|
|
Loading…
Reference in a new issue