Skip to content

Commit 34226a6

Browse files
committed
Fix compilation errors from merge.
ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library. The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
1 parent c461360 commit 34226a6

File tree

8 files changed

+24
-9
lines changed

8 files changed

+24
-9
lines changed

M4_Eyes/file.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//34567890123456789012345678901234567890123456789012345678901234567890123456
22

3-
#define ARDUINOJSON_ENABLE_COMMENTS 1
4-
#include <ArduinoJson.h> // JSON config file functions
3+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
4+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
5+
#include <ArduinoJson.h> // JSON config file functions
56
#include "globals.h"
67

78
extern Adafruit_Arcada arcada;

M4_Eyes/globals.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ extern float screen2map(int in);
235235
extern float map2screen(int in);
236236

237237
// Functions in user.cpp
238-
#include <ArduinoJson.h> // JSON config file functions
238+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
239+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
240+
#include <ArduinoJson.h> // JSON config file functions
239241
extern void user_setup(void);
240242
extern void user_setup(StaticJsonDocument<2048> &doc);
241243
extern void user_loop(void);

M4_Eyes/user.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ void user_setup(void) {
1717

1818
// Called once after the processing of the configuration file. This allows
1919
// user configuration to also be done based on the config file.
20-
#include <ArduinoJson.h> // JSON config file functions
20+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
21+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
22+
#include <ArduinoJson.h> // JSON config file functions
2123
void user_setup(StaticJsonDocument<2048> &doc) {
2224
}
2325

M4_Eyes/user_fizzgig.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ void user_setup(void) {
6262

6363
// Called once after the processing of the configuration file. This allows
6464
// user configuration to also be done based on the config file.
65-
#include <ArduinoJson.h> // JSON config file functions
65+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
66+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
67+
#include <ArduinoJson.h> // JSON config file functions
6668
void user_setup(StaticJsonDocument<2048> &doc) {
6769
}
6870

M4_Eyes/user_hid.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ void user_setup(void) {
4040

4141
// Called once after the processing of the configuration file. This allows
4242
// user configuration to also be done based on the config file.
43-
#include <ArduinoJson.h> // JSON config file functions
43+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
44+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
45+
#include <ArduinoJson.h> // JSON config file functions
4446
void user_setup(StaticJsonDocument<2048> &doc) {
4547
}
4648

M4_Eyes/user_neopixel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ long firstPixelHue = 0;
1616

1717
// Called once after the processing of the configuration file. This allows
1818
// user configuration to also be done based on the config file.
19-
#include <ArduinoJson.h> // JSON config file functions
19+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
20+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
21+
#include <ArduinoJson.h> // JSON config file functions
2022
void user_setup(StaticJsonDocument<2048> &doc) {
2123
}
2224

M4_Eyes/user_touchneopixels.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ void user_setup(void) {
247247

248248
// Called once after the processing of the configuration file. This allows
249249
// user configuration to also be done based on the config file.
250-
#include <ArduinoJson.h> // JSON config file functions
250+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
251+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
252+
#include <ArduinoJson.h> // JSON config file functions
251253
void user_setup(StaticJsonDocument<2048> &doc) {
252254
}
253255

M4_Eyes/user_wiichuck.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
// Button Z: eyes blink
2929
// BOTH buttons: eyes are both wide AND blinking, and the colors change to red
3030

31-
#include <ArduinoJson.h> // JSON config file functions
31+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
32+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
33+
#include <ArduinoJson.h> // JSON config file functions
3234
#include <WiiChuck.h>
3335
#include <Adafruit_NeoPixel.h>
3436
#include "globals.h"

0 commit comments

Comments
 (0)