Skip to content

Commit 99159f0

Browse files
committed
Portenta_H7_M4: provide the correct define
Fixes #333 again (not only for Giga)
1 parent 37337ad commit 99159f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/local/BLELocalDevice.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "BLELocalDevice.h"
2727

28-
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
28+
#if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
2929
#ifndef BT_REG_ON
3030
#define BT_REG_ON PJ_12
3131
#endif
@@ -69,7 +69,7 @@ int BLELocalDevice::begin()
6969
delay(100);
7070
digitalWrite(NINA_RESETN, HIGH);
7171
delay(750);
72-
#elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_GIGA) || defined(ARDUINO_OPTA)
72+
#elif defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_GIGA) || defined(ARDUINO_OPTA)
7373
// BT_REG_ON -> HIGH
7474
pinMode(BT_REG_ON, OUTPUT);
7575
digitalWrite(BT_REG_ON, LOW);

0 commit comments

Comments
 (0)