mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-20 09:47:11 +02:00
improved HMS implementation, RX not functional
Tx visible on SDR @ 863MHz
This commit is contained in:
parent
5525d25e4b
commit
3a25ebb26f
11 changed files with 616 additions and 131 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -22,10 +22,14 @@ IRAM_ATTR void handleHmsIntr(void) {
|
|||
void setup() {
|
||||
myApp.setup();
|
||||
|
||||
if(myApp.getNrfEnabled())
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getNrfIrqPin()), handleIntr, FALLING);
|
||||
if(myApp.getCmtEnabled())
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getCmtIrqPin()), handleHmsIntr, RISING);
|
||||
if(myApp.getNrfEnabled()) {
|
||||
if(DEF_PIN_OFF != myApp.getNrfIrqPin())
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getNrfIrqPin()), handleIntr, FALLING);
|
||||
}
|
||||
if(myApp.getCmtEnabled()) {
|
||||
if(DEF_PIN_OFF != myApp.getCmtIrqPin())
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getCmtIrqPin()), handleHmsIntr, RISING);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue