Skip to content

Commit 8d717bf

Browse files
ABOSTMfpistm
authored andcommitted
fix: ExternalWakeup: assign a PinNumber to USER_BTN
SYS_WKUP1 is a PinName whereas USER_BTN expect a PinNumber. Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 3023ea6 commit 8d717bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ExternalWakeup/ExternalWakeup.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ volatile int repetitions = 1;
2020

2121
// Pin used to trigger a wakeup
2222
#ifndef USER_BTN
23-
#define USER_BTN SYS_WKUP1
23+
#define USER_BTN pinNametoDigitalPin(SYS_WKUP1)
2424
#endif
2525

2626
const int pin = USER_BTN;

0 commit comments

Comments
 (0)