Skip to content

Commit

Permalink
Updated verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAFEDECAF committed May 24, 2023
1 parent 51a737d commit 905b1ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions VanLiveConnect/Esp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const char* EspSystemDataToJson(char* buf, const int n)
if (at >= n) return "";

#ifdef PRINT_JSON_BUFFERS_ON_SERIAL
Serial.print(F("Parsed to JSON object:\n"));
Serial.printf_P(PSTR("%sESP system data as JSON object:\n"), TimeStamp());
PrintJsonText(buf);
#endif // PRINT_JSON_BUFFERS_ON_SERIAL

Expand Down Expand Up @@ -210,7 +210,7 @@ const char* EspRuntimeDataToJson(char* buf, const int n)
if (at >= n) return "";

#ifdef PRINT_JSON_BUFFERS_ON_SERIAL
Serial.print(F("Parsed to JSON object:\n"));
Serial.printf_P(PSTR("%sESP runtime data as JSON object:\n"), TimeStamp());
PrintJsonText(buf);
#endif // PRINT_JSON_BUFFERS_ON_SERIAL

Expand Down
4 changes: 1 addition & 3 deletions VanLiveConnect/Wifi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ const char* WifiDataToJson(const IPAddress& client, char* buf, const int n)
if (at >= n) return "";

#ifdef PRINT_JSON_BUFFERS_ON_SERIAL

Serial.print(F("Wi-Fi data as JSON object:\n"));
Serial.printf_P(PSTR("%sWi-Fi data as JSON object:\n"), TimeStamp());
PrintJsonText(buf);

#endif // PRINT_JSON_BUFFERS_ON_SERIAL

return buf;
Expand Down

0 comments on commit 905b1ca

Please sign in to comment.