fix Interrupt

fix connect to WiFi with only one AP
This commit is contained in:
lumapu 2023-02-06 00:07:58 +01:00
parent a85ed6c089
commit edefcf1c83
5 changed files with 26 additions and 8 deletions

View file

@ -7,11 +7,21 @@
#include "app.h"
#include "config/config.h"
app myApp;
//-----------------------------------------------------------------------------
IRAM_ATTR void handleIntr(void) {
myApp.handleIntr();
}
//-----------------------------------------------------------------------------
void setup() {
myApp.setup();
// TODO: move to HmRadio
attachInterrupt(digitalPinToInterrupt(myApp.getIrqPin()), handleIntr, FALLING);
}