Skip to content

Commit e3924c0

Browse files
committed
Fix pinNametoDigitalPin default value
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 65554c1 commit e3924c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/pins_arduino.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern "C" {
2424

2525
WEAK uint32_t pinNametoDigitalPin(PinName p)
2626
{
27-
uint32_t i = NC;
27+
uint32_t i = NUM_DIGITAL_PINS;
2828
if(STM_VALID_PINNAME(p)) {
2929
for(i = 0; i < NUM_DIGITAL_PINS; i++) {
3030
if (digitalPin[i] == p)

0 commit comments

Comments
 (0)