We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3c537 commit 1a78d8eCopy full SHA for 1a78d8e
src/Notecard.cpp
@@ -257,8 +257,7 @@ void Notecard::begin(NoteSerial * noteSerial_)
257
/**************************************************************************/
258
void Notecard::clearDebugOutputStream(void)
259
{
260
- noteLog = nullptr;
261
- NoteSetFnDebugOutput(nullptr);
+ setDebugOutputStream(nullptr);
262
}
263
264
@@ -445,6 +444,7 @@ void Notecard::setDebugOutputStream(NoteLog * noteLog_)
445
444
if (noteLog) {
446
NoteSetFnDebugOutput(noteLogPrint);
447
} else {
+ make_note_log(nullptr); // Clear singleton
448
NoteSetFnDebugOutput(nullptr);
449
450
0 commit comments