Improve AVR arch detection
Replace ARDUINO_ARCH_AVR with __AVR__ to better detect architecture for non-Arduino dev environments. Resolves compile failure in PIO for 8-bit Teensduino targets More info: https://forum.pjrc.com/threads/33234-Using-Teensyduino-Selecting-Teensy-3-2-3-1-board-has-incorrect-platform-define http://www.atmel.com/webdoc/avrlibcreferencemanual/using_tools_1using_avr_gcc_mach_opt.html
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
#else
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_SAM)
|
||||
#if defined(__AVR__) || defined(ARDUINO_ARCH_SAM)
|
||||
// we're good to go
|
||||
#else
|
||||
#error "This library only supports boards with an AVR or SAM3X processor."
|
||||
|
||||
Reference in New Issue
Block a user