Attempt to fix compile problem on ESP8266 with AsyncJson (need to check on ESP32)
This commit is contained in:
parent
7757b92aeb
commit
6abe266ba0
@ -4,14 +4,8 @@
|
|||||||
#ifndef ASYNC_JSON_H_
|
#ifndef ASYNC_JSON_H_
|
||||||
#define ASYNC_JSON_H_
|
#define ASYNC_JSON_H_
|
||||||
|
|
||||||
#if __has_include("ArduinoJson.h")
|
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#if ARDUINOJSON_VERSION_MAJOR >= 5
|
|
||||||
#define ASYNC_JSON_SUPPORT 1
|
#define ASYNC_JSON_SUPPORT 1
|
||||||
#else
|
|
||||||
#define ASYNC_JSON_SUPPORT 0
|
|
||||||
#endif // ARDUINOJSON_VERSION_MAJOR >= 5
|
|
||||||
#endif // __has_include("ArduinoJson.h")
|
|
||||||
|
|
||||||
#if ASYNC_JSON_SUPPORT == 1
|
#if ASYNC_JSON_SUPPORT == 1
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user