mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-23 03:07:12 +02:00
fix Interrupt
fix connect to WiFi with only one AP
This commit is contained in:
parent
a85ed6c089
commit
edefcf1c83
5 changed files with 26 additions and 8 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue