Skip to content

Commit 2e3a6fe

Browse files
committed
Fixed debug warnings
1 parent fe9c95e commit 2e3a6fe

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

src/LoggerModem.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#define MS_DEBUGGING_STD
2121
#endif
2222

23-
#ifdef MS_LOGGERMODEM_DEBUG_DEEP
24-
#define TINY_GSM_DEBUG STANDARD_SERIAL_OUTPUT
25-
#endif
26-
2723
// Included Dependencies
2824
#include "ModSensorDebugger.h"
2925
#include "VariableBase.h"

src/VariableArray.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool VariableArray::setupSensors(void)
6868
{
6969
bool success = true;
7070

71-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
71+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
7272
bool deepDebugTiming = true;
7373
#else
7474
bool deepDebugTiming = false;
@@ -187,7 +187,7 @@ bool VariableArray::sensorsWake(void)
187187
bool success = true;
188188
uint8_t nSensorsAwake = 0;
189189

190-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
190+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
191191
bool deepDebugTiming = true;
192192
#else
193193
bool deepDebugTiming = false;
@@ -300,7 +300,7 @@ bool VariableArray::updateAllSensors(void)
300300
{
301301
bool success = true;
302302

303-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
303+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
304304
bool deepDebugTiming = true;
305305
#else
306306
bool deepDebugTiming = false;
@@ -464,7 +464,7 @@ bool VariableArray::completeUpdate(void)
464464
bool success = true;
465465
uint8_t nSensorsCompleted = 0;
466466

467-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
467+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
468468
bool deepDebugTiming = true;
469469
#else
470470
bool deepDebugTiming = false;
@@ -563,7 +563,7 @@ bool VariableArray::completeUpdate(void)
563563
}
564564

565565
// This is just for debugging
566-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
566+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
567567
uint8_t arrayPositions[_variableCount];
568568
for (uint8_t i = 0; i < _variableCount; i++)
569569
{

src/VariableArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class VariableArray
9494
bool isLastVarFromSensor(int arrayIndex);
9595
uint8_t countMaxToAverage(void);
9696

97-
#ifdef DEEP_DEBUGGING_SERIAL_OUTPUT
97+
#ifdef MS_VARIABLEARRAY_DEBUG_DEEP
9898
template<typename T>
9999
void prettyPrintArray(T arrayToPrint[])
100100
{

src/dataPublisherBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int dataPublisher::bufferFree(void)
103103
void dataPublisher::printTxBuffer(Stream *stream)
104104
{
105105
// Send the out buffer so far to the serial for debugging
106-
#if defined(STANDARD_SERIAL_OUTPUT)
106+
#if defined(MS_DATAPUBLISHERBASE_DEBUG)
107107
STANDARD_SERIAL_OUTPUT.write(txBuffer, strlen(txBuffer));
108108
PRINTOUT('\n');
109109
STANDARD_SERIAL_OUTPUT.flush();

src/publishers/ThingSpeakPublisher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int16_t ThingSpeakPublisher::sendData(Client *_outClient)
187187
// Make the MQTT connection
188188
// Note: the client id and the user name do not mean anything for ThingSpeak
189189
MS_DBG(F("Opening MQTT Connection"));
190-
#if defined(DEBUGGING_SERIAL_OUTPUT)
190+
#if defined(MS_THINGSPEAKPUBLISHER_DEBUG)
191191
uint32_t start_timer = millis();
192192
#endif
193193
if (_mqttClient.connect(mqttClient, mqttUser, _thingSpeakMQTTKey))
@@ -213,7 +213,7 @@ int16_t ThingSpeakPublisher::sendData(Client *_outClient)
213213

214214
// Disconnect from MQTT
215215
MS_DBG(F("Disconnecting from MQTT"));
216-
#if defined(DEBUGGING_SERIAL_OUTPUT)
216+
#if defined(MS_THINGSPEAKPUBLISHER_DEBUG)
217217
start_timer = millis();
218218
#endif
219219
_mqttClient.disconnect();

0 commit comments

Comments
 (0)