mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-01 03:26:58 +03:00
Fix error when debug enabled but no port chosen (#7648)
When the debug level for the device includes SSL but the debug port is chosen as "None," don't attempt to write debug messages. Fixes #7638
This commit is contained in:
committed by
GitHub
parent
bc2b13ae16
commit
200e47fc7b
@ -21,7 +21,7 @@
|
||||
#include <memory>
|
||||
|
||||
|
||||
#ifdef DEBUG_ESP_SSL
|
||||
#if defined(DEBUG_ESP_SSL) && defined(DEBUG_ESP_PORT)
|
||||
#define DEBUG_BSSL(fmt, ...) DEBUG_ESP_PORT.printf_P((PGM_P)PSTR( "BSSL:" fmt), ## __VA_ARGS__)
|
||||
#else
|
||||
#define DEBUG_BSSL(...)
|
||||
|
Reference in New Issue
Block a user