Create a logging macro (or function) with a central on/off switch. With the switch off, the macro should expand to effectively nothing, as if it wasn't there. There should also be a central serial device configuration to allow, for example, switching between bluetooth serial and USB serial.
This might be a means of putting permanent logging in the code, or it might just be a safer and more convenient way of using temporary print statements for debugging output.
Create a logging macro (or function) with a central on/off switch. With the switch off, the macro should expand to effectively nothing, as if it wasn't there. There should also be a central serial device configuration to allow, for example, switching between bluetooth serial and USB serial.
This might be a means of putting permanent logging in the code, or it might just be a safer and more convenient way of using temporary print statements for debugging output.