Fixups for ESP32
This commit is contained in:
1 parent
a5ea3e2f15
commit
4555ae448f
3 files changed
+23
-12
No files matched your search
@@ -55,9 +55,14 @@
|
||||
|
||||
extern portMUX_TYPE spinlock;
|
||||
|
||||
#define NUM_SERIAL 2
|
||||
#define MYSERIAL0 Serial
|
||||
#define MYSERIAL1 webSocketSerial
|
||||
|
||||
#if ENABLED(WIFISUPPORT)
|
||||
#define NUM_SERIAL 2
|
||||
#define MYSERIAL1 webSocketSerial
|
||||
#else
|
||||
#define NUM_SERIAL 1
|
||||
#endif
|
||||
|
||||
#define CRITICAL_SECTION_START portENTER_CRITICAL(&spinlock)
|
||||
#define CRITICAL_SECTION_END portEXIT_CRITICAL(&spinlock)
|
||||
|
||||
@@ -26,8 +26,10 @@
|
||||
#if ENABLED(WIFISUPPORT)
|
||||
|
||||
#include "WebSocketSerial.h"
|
||||
#include "wifi.h"
|
||||
|
||||
extern WebSocketSerial webSocketSerial;
|
||||
|
||||
#include "wifi.h"
|
||||
#include <AsyncTCP.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
|
||||
|
||||
Reference in new issue
Block a user