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;