Skip to content

Commit 060c57c

Browse files
committed
Allow changing debug option in platformio without getting Arduino IDE errors
1 parent 01c6a45 commit 060c57c

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

tinyGS/src/ConfigManager/ConfigManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "../Logger/Logger.h"
2323
#include "../Radio/Radio.h"
2424
#include "ArduinoJson.h"
25-
#if ARDUINOJSON_USE_LONG_LONG == 0
25+
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
2626
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or edit /ArduinoJson/src/ArduinoJson/Configuration.hpp and amend to #define ARDUINOJSON_USE_LONG_LONG 1 around line 68"
2727
#endif
2828

tinyGS/src/ConfigManager/ConfigManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define ConfigManager_h
2121

2222
#include "IotWebConf2.h"
23-
#if IOTWEBCONF_DEBUG_DISABLED == 0
23+
#if IOTWEBCONF_DEBUG_DISABLED == 0 && !PLATFORMIO
2424
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or edit /IotWebCong2/src/IotWebConf2Settings.h and add this line at the beggining of the file #define IOTWEBCONF_DEBUG_DISABLED 1"
2525
#endif
2626
#include "logos.h"

tinyGS/src/Mqtt/MQTT_Client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "MQTT_Client.h"
2121
#include "ArduinoJson.h"
22-
#if ARDUINOJSON_USE_LONG_LONG == 0
22+
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
2323
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or edit /ArduinoJson/src/ArduinoJson/Configuration.hpp and amend to #define ARDUINOJSON_USE_LONG_LONG 1 around line 68"
2424
#endif
2525
#include "../Radio/Radio.h"

tinyGS/src/Mqtt/MQTT_Client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "../ConfigManager/ConfigManager.h"
2727
#include "../Status.h"
2828
#include <PubSubClient.h>
29-
#if MQTT_MAX_PACKET_SIZE != 1000
29+
#if MQTT_MAX_PACKET_SIZE != 1000 && !PLATFORMIO
3030
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or edit /PubSubClient/src/PubSubClient.h and set #define MQTT_MAX_PACKET_SIZE 1000"
3131
#endif
3232
#ifdef SECURE_MQTT

tinyGS/src/Radio/Radio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "Radio.h"
2121
#include "ArduinoJson.h"
22-
#if ARDUINOJSON_USE_LONG_LONG == 0
22+
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
2323
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or /ArduinoJson/src/ArduinoJson/Configuration.hpp and amend to #define ARDUINOJSON_USE_LONG_LONG 1 around line 68"
2424
#endif
2525
#include <base64.h>

tinyGS/src/Status.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct TextFrame {
6262
};
6363

6464
struct Status {
65-
const uint32_t version = 2104192; // version year month day release
65+
const uint32_t version = 2104210; // version year month day release
6666
const char* git_version = GIT_VERSION;
6767
bool mqtt_connected = false;
6868
bool radio_ready = false;

tinyGS/tinyGS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#error "You are not using the correct version of RadioLib please copy TinyGS/lib/RadioLib on Arduino/libraries"
8484
#endif
8585

86-
#ifndef RADIOLIB_GODMODE
86+
#if RADIOLIB_GODMODE == 0 && !PLATFORMIO
8787
#error "Using Arduino IDE is not recommended, please follow this guide https://github.com/G4lile0/tinyGS/wiki/Arduino-IDE or edit /RadioLib/src/BuildOpt.h and uncomment #define RADIOLIB_GODMODE around line 367"
8888
#endif
8989

0 commit comments

Comments
 (0)