From 88a704c4d3a5f5f7f5a2f50056bb2ba6b95e3814 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 27 Apr 2020 09:46:06 -0700 Subject: [PATCH] for now, allow debug out to be interleaved with protobufs --- src/SerialConsole.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SerialConsole.cpp b/src/SerialConsole.cpp index 5a86dbc1d..e5c2866c2 100644 --- a/src/SerialConsole.cpp +++ b/src/SerialConsole.cpp @@ -25,7 +25,11 @@ void SerialConsole::init() */ void SerialConsole::handleToRadio(const uint8_t *buf, size_t len) { - setDestination(&noopPrint); + // Note: for the time being we _allow_ debug printing to keep going out the console + // I _think_ this is okay because we currently only print debug msgs from loop() and we are only + // dispatching serial protobuf msgs from loop() as well. When things are more threaded in the future this + // will need to change. + // setDestination(&noopPrint); canWrite = true; StreamAPI::handleToRadio(buf, len);