mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +03:00
fix DEBUG macros (#5728)
* fix DEBUG macros All fmt strings in flash fix #5658 This also allows to avoid warnings and easy mistakes with (no brace): if (something) DEBUGV("blah"); * use newlib unaligned-compatible printf for DEBUGV * remove useless putprintf since ::printf already uses ets_putc
This commit is contained in:
@ -29,12 +29,12 @@
|
||||
|
||||
#ifdef DEBUG_ESP_WIFI
|
||||
#ifdef DEBUG_ESP_PORT
|
||||
#define DEBUG_WIFI_GENERIC(fmt, ...) DEBUG_ESP_PORT.printf( (PGM_P)PSTR(fmt), ##__VA_ARGS__ )
|
||||
#define DEBUG_WIFI_GENERIC(fmt, ...) DEBUG_ESP_PORT.printf_P( (PGM_P)PSTR(fmt), ##__VA_ARGS__ )
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef DEBUG_WIFI_GENERIC
|
||||
#define DEBUG_WIFI_GENERIC(...)
|
||||
#define DEBUG_WIFI_GENERIC(...) do { (void)0; } while (0)
|
||||
#endif
|
||||
|
||||
struct WiFiEventHandlerOpaque;
|
||||
|
Reference in New Issue
Block a user