Skip to content

Commit 7315dc1

Browse files
authored
Merge pull request #396 from cyberman54/patch-1
bugfix: add missing pinmode initialization in hal_interrupt_init()
2 parents 6427a03 + 760b24a commit 7315dc1

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)