Skip to content

Commit 9b25b6d

Browse files
committed
Changes in Debug messages
1 parent df4be55 commit 9b25b6d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

wled00/wled.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void WLED::loop()
199199
DEBUG_PRINT(F("Unix time: ")); toki.printTime(toki.getTime());
200200
DEBUG_PRINT(F("Free heap: ")); DEBUG_PRINTLN(ESP.getFreeHeap());
201201
#ifdef ARDUINO_ARCH_ESP32
202-
DEBUG_PRINT(pcTaskGetTaskName(NULL)); DEBUG_PRINT(F(" free stack ")); DEBUG_PRINTLN(uxTaskGetStackHighWaterMark(NULL));
202+
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
203203
#endif
204204
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM)
205205
if (psramFound()) {
@@ -410,7 +410,7 @@ void WLED::setup()
410410
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0) // unfortunately not availeable in older framework versions
411411
USER_PRINT(F("\nArduino max stack ")); USER_PRINTLN(getArduinoLoopTaskStackSize());
412412
#endif
413-
USER_PRINT(pcTaskGetTaskName(NULL)); USER_PRINT(F(" free stack ")); USER_PRINTLN(uxTaskGetStackHighWaterMark(NULL));
413+
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
414414
#endif
415415

416416
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM)
@@ -466,7 +466,7 @@ void WLED::setup()
466466

467467
DEBUG_PRINT(F("heap ")); DEBUG_PRINTLN(ESP.getFreeHeap());
468468
#ifdef ARDUINO_ARCH_ESP32
469-
DEBUG_PRINT(pcTaskGetTaskName(NULL)); DEBUG_PRINT(F(" free stack ")); DEBUG_PRINTLN(uxTaskGetStackHighWaterMark(NULL));
469+
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
470470
#endif
471471

472472
for (uint8_t i=1; i<WLED_MAX_BUTTONS; i++) btnPin[i] = -1;

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2303270
11+
#define VERSION 2303271
1212

1313
//uncomment this if you have a "my_config.h" file you'd like to use
1414
//#define WLED_USE_MY_CONFIG

wled00/wled_server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ void initServer()
363363
});
364364
#endif
365365
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
366-
USER_PRINTF("%s Client request %s\n", serverDescription, request->url().c_str()); //WLEDMM: want to see if client connects to wled, for netdebug also wants to know server
366+
USER_PRINTLN("Client request"); //WLEDMM: want to see if client connects to wled
367367
#ifdef ARDUINO_ARCH_ESP32
368-
USER_PRINT(pcTaskGetTaskName(NULL)); USER_PRINT(F(" min free stack ")); USER_PRINTLN(uxTaskGetStackHighWaterMark(NULL));
368+
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
369369
#endif
370370
if (captivePortal(request)) return;
371371
serveIndexOrWelcome(request);
@@ -557,7 +557,7 @@ void serveSettingsJS(AsyncWebServerRequest* request)
557557

558558
#ifdef ARDUINO_ARCH_ESP32
559559
DEBUG_PRINT(F("ServeSettingsJS: "));
560-
DEBUG_PRINT(pcTaskGetTaskName(NULL)); DEBUG_PRINT(F(" min free stack ")); DEBUG_PRINT(uxTaskGetStackHighWaterMark(NULL));
560+
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
561561
DEBUG_PRINTF(PSTR(" bytes.\tString buffer usage: %4d of %d bytes\n"), strlen(buf)+1, SETTINGS_STACK_BUF_SIZE+37);
562562
#endif
563563

wled00/ws.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void sendDataWs(AsyncWebSocketClient * client)
118118
return;
119119
}
120120
#else
121-
//DEBUG_PRINT(pcTaskGetTaskName(NULL)); DEBUG_PRINT(F(" min free stack ")); DEBUG_PRINT(uxTaskGetStackHighWaterMark(NULL));
121+
// DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
122122
#endif
123123
buffer = ws.makeBuffer(len); // will not allocate correct memory sometimes on ESP8266
124124
#ifdef ESP8266

0 commit comments

Comments
 (0)