Skip to content

Commit 95f5d9d

Browse files
committed
Fix compatibility with the Blynk libary (fixes #1914)
Ported from 52d8a65
1 parent 03139a0 commit 95f5d9d

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

extras/scripts/publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ update_version_in_source () {
4646
-e "s/ARDUINOJSON_VERSION_MAJOR .*$/ARDUINOJSON_VERSION_MAJOR $MAJOR/" \
4747
-e "s/ARDUINOJSON_VERSION_MINOR .*$/ARDUINOJSON_VERSION_MINOR $MINOR/" \
4848
-e "s/ARDUINOJSON_VERSION_REVISION .*$/ARDUINOJSON_VERSION_REVISION $REVISION/" \
49+
-e "s/ARDUINOJSON_VERSION_MACRO .*$/ARDUINOJSON_VERSION_MACRO V$MAJOR$MINOR$REVISION/" \
4950
src/ArduinoJson/version.hpp
5051
rm src/ArduinoJson/version.hpp*~
5152
}

extras/tests/Misc/conflicts.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,8 @@
5555
// issue #1905
5656
#define _current
5757

58+
// issue #1914
59+
#define V7 7
60+
5861
// catch.hpp mutes several warnings, this file also allows to detect them
5962
#include "ArduinoJson.h"

src/ArduinoJson/Namespace.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
#ifndef ARDUINOJSON_VERSION_NAMESPACE
1212

1313
# define ARDUINOJSON_VERSION_NAMESPACE \
14-
ARDUINOJSON_CONCAT3(ARDUINOJSON_CONCAT4(V, ARDUINOJSON_VERSION_MAJOR, \
15-
ARDUINOJSON_VERSION_MINOR, \
16-
ARDUINOJSON_VERSION_REVISION), \
14+
ARDUINOJSON_CONCAT3(ARDUINOJSON_VERSION_MACRO, \
1715
ARDUINOJSON_BIN2ALPHA(ARDUINOJSON_ENABLE_PROGMEM, \
1816
ARDUINOJSON_USE_LONG_LONG, \
1917
ARDUINOJSON_USE_DOUBLE, 1), \

src/ArduinoJson/Polyfills/preprocessor.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#define ARDUINOJSON_CONCAT2(A, B) ARDUINOJSON_CONCAT_(A, B)
99
#define ARDUINOJSON_CONCAT3(A, B, C) \
1010
ARDUINOJSON_CONCAT2(ARDUINOJSON_CONCAT2(A, B), C)
11-
#define ARDUINOJSON_CONCAT4(A, B, C, D) \
12-
ARDUINOJSON_CONCAT2(ARDUINOJSON_CONCAT2(A, B), ARDUINOJSON_CONCAT2(C, D))
1311

1412
#define ARDUINOJSON_BIN2ALPHA_0000() A
1513
#define ARDUINOJSON_BIN2ALPHA_0001() B

src/ArduinoJson/version.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
#define ARDUINOJSON_VERSION_MAJOR 7
99
#define ARDUINOJSON_VERSION_MINOR 0
1010
#define ARDUINOJSON_VERSION_REVISION 0
11+
#define ARDUINOJSON_VERSION_MACRO V700

0 commit comments

Comments
 (0)