for now, allow debug out to be interleaved with protobufs

pull/113/head
geeksville 2020-04-27 09:46:06 -07:00
rodzic 9f49f90acd
commit 88a704c4d3
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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);