From 70909a3b3b834ebbf385d58ee434bc99d3740264 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 19 Feb 2024 08:40:59 +0100 Subject: [PATCH] Fix: "ARDUINO_PORTENTA_H7_M4" was replaced by "ARDUINO_GENERIC_STM32H747_M4" for Arduino Portenta H7 / M4 core. Since the previous define ("ARDUINO_PORTENTA_H7_M7") no longer exists, the #ifdef is not evaluated leading to a compilation error when compiling this library for the M4 core of the Arduino Portenta H7. --- .gitignore | 1 + src/Common.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/src/Common.h b/src/Common.h index c59c821..06c81a9 100644 --- a/src/Common.h +++ b/src/Common.h @@ -14,7 +14,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4) #define RESET _RESET #endif