improved HMS implementation, RX not functional

Tx visible on SDR @ 863MHz
This commit is contained in:
lumapu 2023-02-21 20:23:45 +01:00
parent 5525d25e4b
commit 3a25ebb26f
11 changed files with 616 additions and 131 deletions

View file

@ -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);
}
}