From 9985bad2780fd79f100715ade1126f4e20c21a96 Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Sun, 1 Feb 2015 03:24:00 -0800 Subject: [PATCH] Minor fix for future Teensy boards (using AVR conventions) --- utility/direct_pin_read.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/direct_pin_read.h b/utility/direct_pin_read.h index 97b8862..040938e 100644 --- a/utility/direct_pin_read.h +++ b/utility/direct_pin_read.h @@ -1,7 +1,7 @@ #ifndef direct_pin_read_h_ #define direct_pin_read_h_ -#if defined(__AVR__) || defined(__MK20DX128__) || defined(__MK20DX256__) +#if defined(__AVR__) || (defined(__arm__) && defined(CORE_TEENSY)) #define IO_REG_TYPE uint8_t #define PIN_TO_BASEREG(pin) (portInputRegister(digitalPinToPort(pin)))