Skip to content

Commit

Permalink
Allow changing debug option in platformio without getting Arduino IDE…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
4m1g0 committed Apr 20, 2021
1 parent 01c6a45 commit 060c57c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tinyGS/src/ConfigManager/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "../Logger/Logger.h"
#include "../Radio/Radio.h"
#include "ArduinoJson.h"
#if ARDUINOJSON_USE_LONG_LONG == 0
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
#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"
#endif

Expand Down
2 changes: 1 addition & 1 deletion tinyGS/src/ConfigManager/ConfigManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define ConfigManager_h

#include "IotWebConf2.h"
#if IOTWEBCONF_DEBUG_DISABLED == 0
#if IOTWEBCONF_DEBUG_DISABLED == 0 && !PLATFORMIO
#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"
#endif
#include "logos.h"
Expand Down
2 changes: 1 addition & 1 deletion tinyGS/src/Mqtt/MQTT_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "MQTT_Client.h"
#include "ArduinoJson.h"
#if ARDUINOJSON_USE_LONG_LONG == 0
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
#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"
#endif
#include "../Radio/Radio.h"
Expand Down
2 changes: 1 addition & 1 deletion tinyGS/src/Mqtt/MQTT_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "../ConfigManager/ConfigManager.h"
#include "../Status.h"
#include <PubSubClient.h>
#if MQTT_MAX_PACKET_SIZE != 1000
#if MQTT_MAX_PACKET_SIZE != 1000 && !PLATFORMIO
#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"
#endif
#ifdef SECURE_MQTT
Expand Down
2 changes: 1 addition & 1 deletion tinyGS/src/Radio/Radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "Radio.h"
#include "ArduinoJson.h"
#if ARDUINOJSON_USE_LONG_LONG == 0
#if ARDUINOJSON_USE_LONG_LONG == 0 && !PLATFORMIO
#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"
#endif
#include <base64.h>
Expand Down
2 changes: 1 addition & 1 deletion tinyGS/src/Status.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct TextFrame {
};

struct Status {
const uint32_t version = 2104192; // version year month day release
const uint32_t version = 2104210; // version year month day release
const char* git_version = GIT_VERSION;
bool mqtt_connected = false;
bool radio_ready = false;
Expand Down
2 changes: 1 addition & 1 deletion tinyGS/tinyGS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#error "You are not using the correct version of RadioLib please copy TinyGS/lib/RadioLib on Arduino/libraries"
#endif

#ifndef RADIOLIB_GODMODE
#if RADIOLIB_GODMODE == 0 && !PLATFORMIO
#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"
#endif

Expand Down

0 comments on commit 060c57c

Please sign in to comment.