Skip to content

Commit 31a691b

Browse files
authored
Fix: ARDUINO_PORTENTA_H7_M4 was replaced by ARDUINO_GENERIC_STM32H747_M4 for Arduino Portenta H7 / M4 core. (#25)
1 parent c08f3da commit 31a691b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PF1550.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void PF1550::configCharger(IFastCharge const i_fast_charge,
184184

185185
#if defined(ARDUINO_PORTENTA_C33)
186186
static PF1550_IO_C33 io(&Wire3, PF1550_I2C_DEFAULT_ADDR);
187-
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
187+
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
188188
static PF1550_IO_Portenta_H7 io(&Wire1, PF1550_I2C_DEFAULT_ADDR);
189189
#elif defined(ARDUINO_NICLA_VISION)
190190
static PF1550_IO_Nicla_Vision io(&Wire1, PF1550_I2C_DEFAULT_ADDR);

src/PF1550.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class PF1550
6868
bool const enable,
6969
bool const enable_in_standby,
7070
bool const enable_in_sleep)
71-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
71+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4) || defined(ARDUINO_NICLA_VISION)
7272
__attribute__ ((error("Erroneous usage of this API can cause board damage.")))
7373
#elif defined(ARDUINO_PORTENTA_C33)
7474
__attribute__ ((warning("Using this API you can turn off ESP32 (WiFi), SE051 (Crypto) and Ethernet PHY. Proceed with caution.")))

0 commit comments

Comments
 (0)