Skip to content

Commit

Permalink
Merge pull request #396 from cyberman54/patch-1
Browse files Browse the repository at this point in the history
bugfix: add missing pinmode initialization in hal_interrupt_init()
  • Loading branch information
terrillmoore authored Sep 1, 2019
2 parents 6427a03 + 760b24a commit 7315dc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hal/hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ static void hal_interrupt_init() {
if (plmic_pins->dio[i] == LMIC_UNUSED_PIN)
continue;

pinMode(plmic_pins->dio[i], INPUT);
attachInterrupt(digitalPinToInterrupt(plmic_pins->dio[i]), interrupt_fns[i], RISING);
}
}
Expand Down

0 comments on commit 7315dc1

Please sign in to comment.