1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-10 04:22:05 +03:00

Move WiFi debug messages to PMEM (#5388)

Save ~1200 bytes in debug mode by making debug strings into PSTRs().
This commit is contained in:
Earle F. Philhower, III
2018-11-29 12:55:40 -08:00
committed by GitHub
parent 2486405e52
commit 9ec03ed3f6
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ extern "C" {
#ifdef DEBUG_ESP_WIFI
#ifdef DEBUG_ESP_PORT
#define DEBUG_WIFI(...) DEBUG_ESP_PORT.printf( __VA_ARGS__ )
#define DEBUG_WIFI(fmt, ...) DEBUG_ESP_PORT.printf_P( (PGM_P)PSTR(fmt), ##__VA_ARGS__ )
#endif
#endif