From b0c6144886f4e1f88684f708d7b2974143d8601c Mon Sep 17 00:00:00 2001 From: Marco Tombesi <32168423+baggior@users.noreply.github.com> Date: Mon, 24 Jun 2019 17:27:35 +0200 Subject: [PATCH] Update AsyncJson.h (#533) for the newest ArduinoJson v6 compatibility --- src/AsyncJson.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AsyncJson.h b/src/AsyncJson.h index 52b12f7..4a6d6ba 100644 --- a/src/AsyncJson.h +++ b/src/AsyncJson.h @@ -140,6 +140,7 @@ class AsyncJsonResponse: public AsyncAbstractResponse { } }; +#ifdef ARDUINOJSON_5_COMPATIBILITY class PrettyAsyncJsonResponse: public AsyncJsonResponse { public: PrettyAsyncJsonResponse (bool isArray=false) : AsyncJsonResponse{isArray} {} @@ -154,6 +155,7 @@ public: return len; } }; +#endif typedef std::function ArJsonRequestHandlerFunction;