I’ve posted on GitHub to no avail, so I thought I’d try my luck here.
I am using the
debug() function (from
mbed_debug.h) to print a bunch of info/error messages when using the debug build profile. Under specific circumstances I instantiate a
UARTSerial object in the following way, where the TX/RX pins are the same as used for the
UARTSerial *_serial; _serial = new UARTSerial(TX, RX, BAUD);
The creation of this
UARTSerial object breaks the
debug() output. My question is a simple one; is there an explicit function call I can make to re-instantiate the UART used by
mbed_debug after deleting my
If not, I am using the
UARTSerial object with an
_parser = new ATCmdParser(_serial);
Is there a way to access the object used by
mbed_debug in a way that’s compatible with the
ATCmdParser? This would save having to instantiate a new UARTSerial object in the first place. This would be the preferred solution.