tfabris / BlueGigaEmpeg

Arduino module and daughter board to convert the empeg Car MP3 player to Bluetooth output.
GNU General Public License v3.0
0 stars 0 forks source link

Create a boolean option to chose logging method: Line by line or character by character. #11

Closed tfabris closed 6 years ago

tfabris commented 6 years ago

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.

tfabris commented 6 years ago

Can do this conditionally based on a boolean variable at the top of the script.

tfabris commented 6 years ago

Added the feature. Seems to work but I haven't done a huge amount of testing.