Skip to content

Commit 2491ad0

Browse files
committed
added verbose output status if on to output
1 parent bb3f3a0 commit 2491ad0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWANAbout.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ void sfeIoTNodeLoRaWAN::displayAppStatus(bool useInfo)
9797
flxLog__(logLevel, "%cBoard ID: %s", pre_ch, flux.deviceId());
9898

9999
flxLog_N("");
100+
if (verboseEnabled())
101+
{
102+
flxLog___(logLevel, "%cVerbose Messaging: ", pre_ch);
103+
flxSerial.textToWhite();
104+
flxLog_N("Enabled");
105+
flxSerial.textToNormal();
106+
flxLog_N("");
107+
}
100108

101109
if (!useInfo)
102110
{
@@ -115,14 +123,16 @@ void sfeIoTNodeLoRaWAN::displayAppStatus(bool useInfo)
115123
// flx_utils::formatByteString(_theSDCard.total(), 2, szCap, sizeof(szCap));
116124
// flx_utils::formatByteString(_theSDCard.total() - _theSDCard.used(), 2, szAvail, sizeof(szAvail));
117125

118-
// flxLog__(logLevel, "%cSD Card - Type: %s Size: %s Capacity: %s Free: %s (%.1f%%)", pre_ch, _theSDCard.type(),
126+
// flxLog__(logLevel, "%cSD Card - Type: %s Size: %s Capacity: %s Free: %s (%.1f%%)", pre_ch,
127+
// _theSDCard.type(),
119128
// szSize, szCap, szAvail, 100. - (_theSDCard.used() / (float)_theSDCard.total() * 100.));
120129
// }
121130
// else
122131
// flxLog__(logLevel, "%cSD card not available", pre_ch);
123132

124133
// // show heap level
125-
// flxLog__(logLevel, "%cSystem Heap - Total: %dB Free: %dB (%.1f%%)", pre_ch, ESP.getHeapSize(), ESP.getFreeHeap(),
134+
// flxLog__(logLevel, "%cSystem Heap - Total: %dB Free: %dB (%.1f%%)", pre_ch, ESP.getHeapSize(),
135+
// ESP.getFreeHeap(),
126136
// (float)ESP.getFreeHeap() / (float)ESP.getHeapSize() * 100.);
127137

128138
// Battery fuel gauge available?
@@ -160,6 +170,7 @@ void sfeIoTNodeLoRaWAN::displayAppStatus(bool useInfo)
160170
flxLog__(logLevel, "%cJSON Buffer - Size: %dB Max Used: %dB", pre_ch, jsonBufferSize(), _fmtJSON.getMaxSizeUsed());
161171
flxLog__(logLevel, "%cSerial Output: %s", pre_ch, kLogFormatNames[serialLogType()]);
162172
flxLog_N("%c Baud Rate: %d", pre_ch, serialBaudRate());
173+
163174
// flxLog__(logLevel, "%cSD Card Output: %s", pre_ch, kLogFormatNames[sdCardLogType()]);
164175

165176
// at startup, useInfo == true, the file isn't known, so skip output

0 commit comments

Comments
 (0)