Skip to content

Commit 2cc82f4

Browse files
authored
Fix: board was renamed to ARDUINO_PORTENTA_C33 which subsequently broke this library. (#16)
1 parent 63c5b2e commit 2cc82f4

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
@@ -182,7 +182,7 @@ void PF1550::configCharger(IFastCharge const i_fast_charge,
182182
EXTERN DEFINITION
183183
******************************************************************************/
184184

185-
#if defined(ARDUINO_PORTENTA_H33)
185+
#if defined(ARDUINO_PORTENTA_C33)
186186
static PF1550_IO_C33 io(&Wire3, PF1550_I2C_DEFAULT_ADDR);
187187
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
188188
static PF1550_IO_Portenta_H7 io(&Wire1, PF1550_I2C_DEFAULT_ADDR);

src/PF1550.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class PF1550
7070
bool const enable_in_sleep)
7171
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION)
7272
__attribute__ ((error("Erroneous usage of this API can cause board damage.")))
73-
#elif defined(ARDUINO_PORTENTA_H33)
73+
#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.")))
7575
#endif
7676
;

0 commit comments

Comments
 (0)