Skip to content

Commit 760b24a

Browse files
authored
add pinmode initialization in hal_interrupt_init()
Pinmode initialization is missing in hal_interrupt_init(). Without the interrupt driven timestamping mode does not work (tested on ESP32 hardware). Added just this one extra line and it worked! :-)
1 parent 6427a03 commit 760b24a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hal/hal.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ static void hal_interrupt_init() {
130130
if (plmic_pins->dio[i] == LMIC_UNUSED_PIN)
131131
continue;
132132

133+
pinMode(plmic_pins->dio[i], INPUT);
133134
attachInterrupt(digitalPinToInterrupt(plmic_pins->dio[i]), interrupt_fns[i], RISING);
134135
}
135136
}

0 commit comments

Comments
 (0)