Feature add: FDRS logging verbosity

pull/194/head
Jeff Lehman 3 months ago
parent 4d0488b16f
commit 8473b5f8f9

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -11,7 +11,12 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276

@ -11,7 +11,12 @@
//#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276

@ -11,7 +11,12 @@
//#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276

@ -11,7 +11,12 @@
//#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276

@ -11,7 +11,12 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276

@ -11,8 +11,13 @@
//#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
//#define FDRS_DEBUG
//
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
// #define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -43,7 +43,11 @@
#define LORA_SPI_MISO 19
#define LORA_SPI_MOSI 27
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// OLED -- Displays console debugging messages on an SSD1306 I²C OLED
///#define USE_OLED

@ -10,7 +10,12 @@
#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276

@ -11,7 +11,12 @@
#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -13,7 +13,12 @@
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 // ESP32 SX1276 (TTGO)

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
#define POWER_CTRL 22
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
#define USE_LORA
//#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 // ESP32 SX1276 (TTGO)
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
#define POWER_CTRL 4
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,12 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -10,7 +10,13 @@
//#define USE_LORA
#define DEEP_SLEEP
//#define POWER_CTRL 14
#define FDRS_DEBUG
// Choose none or one of the debug options below.
// DEBUG will show some information but for troubleshooting a good level would be FDRS_DEBUG_1
#define FDRS_DEBUG // Enable USB-Serial debugging
// define FDRS_DEBUG_1 // Additional logging messages for troubleshooting purposes - commment out the other FDRS_DEBUG options
// define FDRS_DEBUG_2 // Show all logging messages for development purposes - comment out the other FDRS_DEBUG options
// LoRa Configuration
#define RADIOLIB_MODULE SX1276 //Tested on SX1276
#define LORA_SS 18

@ -1,14 +1,42 @@
#if !defined(FDRS_DEBUG) && !defined(FDRS_DEBUG_1) && !defined(FDRS_DEBUG_2)
#ifdef USE_OLED
#define DBG(a) debug_OLED(String(a));
#define DBG1(a)
#define DBG2(a)
#else
#define DBG(a)
#define DBG1(a)
#define DBG2(a)
#endif
#endif
#ifdef FDRS_DEBUG
#ifdef USE_OLED
#define DBG(a) debug_OLED(String(a)); \
Serial.println(a);
#define DBG(a) Serial.println(a); debug_OLED(String(a));
#else
#define DBG(a) Serial.println(a);
#endif
#endif // USE_OLED
#define DBG1(a)
#define DBG2(a)
#endif // FDRS_DEBUG
#ifdef FDRS_DEBUG_1
#ifdef USE_OLED
#define DBG(a) Serial.print(" "); Serial.println(a); debug_OLED(String(a));
#else
#define DBG(a) Serial.print(" "); Serial.println(a);
#endif // USE_OLED
#define DBG1(a) Serial.print("[1] "); Serial.println(a);
#define DBG2(a)
#endif //FDRS_DEBUG_1
#ifdef FDRS_DEBUG_2
#ifdef USE_OLED
#define DBG(a) debug_OLED(String(a));
#define DBG(a) Serial.print(" "); Serial.println(a); debug_OLED(String(a));
#else
#define DBG(a)
#endif
#endif
#define DBG(a) Serial.print(" "); Serial.println(a);
#endif // USE_OLED
#define DBG2(a) Serial.print("[2] "); Serial.println(a);
#define DBG1(a) Serial.print("[1] "); Serial.println(a);
#endif //FDRS_DEBUG_2
Loading…
Cancel
Save