Considering changing the logging so that it does not try to display the Empeg and Bluetooth outputs "one character at a time", and instead only logs the output after full receipt of an entire line.
This might make the output more readable in situations where the Empeg and the Bluetooth are saying things simultaneously and so their output lines get mixed on the debug console.
Risk is that if there is a serial buffer overrun, I might not see one of the partial lines, if the linefeed was lost in the buffer overrun.
Another risk is that we might see the output lines out of order in the debug console, not necessarily knowing which one was first. This might not be a big deal since the empeg and the bluetooth do not ever talk directly to each other without going through my code.
Considering changing the logging so that it does not try to display the Empeg and Bluetooth outputs "one character at a time", and instead only logs the output after full receipt of an entire line.
This might make the output more readable in situations where the Empeg and the Bluetooth are saying things simultaneously and so their output lines get mixed on the debug console.
Risk is that if there is a serial buffer overrun, I might not see one of the partial lines, if the linefeed was lost in the buffer overrun.
Another risk is that we might see the output lines out of order in the debug console, not necessarily knowing which one was first. This might not be a big deal since the empeg and the bluetooth do not ever talk directly to each other without going through my code.