mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 17:42:48 +00:00
turn off serial debug output once we are using the protocol on the stream
This commit is contained in:
parent
009f05b61d
commit
a8a5e036f5
@ -27,11 +27,8 @@ void SerialConsole::init()
|
|||||||
*/
|
*/
|
||||||
void SerialConsole::handleToRadio(const uint8_t *buf, size_t len)
|
void SerialConsole::handleToRadio(const uint8_t *buf, size_t len)
|
||||||
{
|
{
|
||||||
// Note: for the time being we could _allow_ debug printing to keep going out the console
|
// Turn off debug serial printing once the API is activated, because other threads could print and corrupt packets
|
||||||
// I _think_ this is okay because we currently only print debug msgs from loop() and we are only
|
setDestination(&noopPrint);
|
||||||
// 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;
|
canWrite = true;
|
||||||
|
|
||||||
StreamAPI::handleToRadio(buf, len);
|
StreamAPI::handleToRadio(buf, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user