Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: ARDUINO_PORTENTA_H7_M4 was replaced by ARDUINO_GENERIC_STM32H747_M4 for Arduino Portenta H7 / M4 core. #25

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PF1550.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void PF1550::configCharger(IFastCharge const i_fast_charge,

#if defined(ARDUINO_PORTENTA_C33)
static PF1550_IO_C33 io(&Wire3, PF1550_I2C_DEFAULT_ADDR);
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
static PF1550_IO_Portenta_H7 io(&Wire1, PF1550_I2C_DEFAULT_ADDR);
#elif defined(ARDUINO_NICLA_VISION)
static PF1550_IO_Nicla_Vision io(&Wire1, PF1550_I2C_DEFAULT_ADDR);
Expand Down
2 changes: 1 addition & 1 deletion src/PF1550.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PF1550
bool const enable,
bool const enable_in_standby,
bool const enable_in_sleep)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4) || defined(ARDUINO_NICLA_VISION)
__attribute__ ((error("Erroneous usage of this API can cause board damage.")))
#elif defined(ARDUINO_PORTENTA_C33)
__attribute__ ((warning("Using this API you can turn off ESP32 (WiFi), SE051 (Crypto) and Ethernet PHY. Proceed with caution.")))
Expand Down
Loading