Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 2f78426

Browse files
authored
Redefine DYNAMIC_JSON_DOCUMENT_SIZE if not defined (me-no-dev#922)
1 parent f6fff3f commit 2f78426

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/AsyncJson.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
#if ARDUINOJSON_VERSION_MAJOR == 5
4242
#define ARDUINOJSON_5_COMPATIBILITY
4343
#else
44-
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024
44+
#ifndef DYNAMIC_JSON_DOCUMENT_SIZE
45+
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024
46+
#endif
4547
#endif
4648

4749
constexpr const char* JSON_MIMETYPE = "application/json";

0 commit comments

Comments
 (0)