Skip to content

Commit

Permalink
Redefine DYNAMIC_JSON_DOCUMENT_SIZE if not defined (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
paclema committed Feb 24, 2021
1 parent f6fff3f commit 2f78426
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AsyncJson.h
Expand Up @@ -41,7 +41,9 @@
#if ARDUINOJSON_VERSION_MAJOR == 5
#define ARDUINOJSON_5_COMPATIBILITY
#else
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024
#ifndef DYNAMIC_JSON_DOCUMENT_SIZE
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024
#endif
#endif

constexpr const char* JSON_MIMETYPE = "application/json";
Expand Down

0 comments on commit 2f78426

Please sign in to comment.