Pitt-RAS / micromouse-2016

7 stars 6 forks source link

Logging macro #84

Closed ghost closed 7 years ago

ghost commented 7 years ago

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.