1
0
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:
Earle F. Philhower, III
2020-10-09 15:54:39 -07:00
committed by GitHub
parent bc2b13ae16
commit 200e47fc7b
2 changed files with 3 additions and 3 deletions

View File

@ -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(...)