mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
refactored GLOBALS to FDRS_GLOBALS
Globals is just too... global :) Could also conflict with other libraries.
This commit is contained in:
parent
86f0a1c4ef
commit
25fb6b4d26
@ -16,7 +16,7 @@
|
||||
#define UART_IF Serial
|
||||
#endif
|
||||
|
||||
#ifdef GLOBALS
|
||||
#ifdef FDRS_GLOBALS
|
||||
#define FDRS_WIFI_SSID GLOBAL_SSID
|
||||
#define FDRS_WIFI_PASS GLOBAL_PASS
|
||||
#define FDRS_MQTT_ADDR GLOBAL_MQTT_ADDR
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "LoRa.h"
|
||||
#endif
|
||||
|
||||
#ifdef GLOBALS
|
||||
#ifdef FDRS_GLOBALS
|
||||
#define FDRS_BAND GLOBAL_BAND
|
||||
#define FDRS_SF GLOBAL_SF
|
||||
#else
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define UART_IF Serial
|
||||
#endif
|
||||
|
||||
#ifdef GLOBALS
|
||||
#ifdef FDRS_GLOBALS
|
||||
#define FDRS_WIFI_SSID GLOBAL_SSID
|
||||
#define FDRS_WIFI_PASS GLOBAL_PASS
|
||||
#define FDRS_MQTT_ADDR GLOBAL_MQTT_ADDR
|
||||
|
@ -1,6 +1,5 @@
|
||||
// ToDo: refactor the global GLOBALS to FDRS_GLOBALS as GLOBALS is ... well, too global ;)
|
||||
#ifndef GLOBALS
|
||||
#define GLOBALS
|
||||
#ifndef FDRS_GLOBALS
|
||||
#define FDRS_GLOBALS
|
||||
#define GLOBAL_SSID "Your SSID"
|
||||
#define GLOBAL_PASS "Password"
|
||||
#define GLOBAL_MQTT_ADDR "192.168.0.8"
|
||||
@ -12,4 +11,4 @@
|
||||
#define GLOBAL_BAND 915E6 //LoRa Frequency Band
|
||||
#define GLOBAL_SF 7 //LoRa Spreading Factor
|
||||
|
||||
#endif GLOBALS
|
||||
#endif FDRS_GLOBALS
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <LoRa.h>
|
||||
#endif
|
||||
|
||||
#ifdef GLOBALS
|
||||
#ifdef FDRS_GLOBALS
|
||||
#define FDRS_BAND GLOBAL_BAND
|
||||
#define FDRS_SF GLOBAL_SF
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user