Skip to content

Commit

Permalink
Fix: board was renamed to ARDUINO_PORTENTA_C33 which subsequently bro…
Browse files Browse the repository at this point in the history
…ke this library. (#16)
  • Loading branch information
aentinger authored Jun 28, 2023
1 parent 63c5b2e commit 2cc82f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PF1550.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void PF1550::configCharger(IFastCharge const i_fast_charge,
EXTERN DEFINITION
******************************************************************************/

#if defined(ARDUINO_PORTENTA_H33)
#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)
static PF1550_IO_Portenta_H7 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 @@ -70,7 +70,7 @@ class PF1550
bool const enable_in_sleep)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
__attribute__ ((error("Erroneous usage of this API can cause board damage.")))
#elif defined(ARDUINO_PORTENTA_H33)
#elif defined(ARDUINO_PORTENTA_C33)
__attribute__ ((warning("Using this API you can turn off ESP32 (WiFi), SE051 (Crypto) and Ethernet PHY. Proceed with caution.")))
#endif
;
Expand Down

0 comments on commit 2cc82f4

Please sign in to comment.