Remove overwrite protection on debug output callbacks

This commit is contained in:
Raphael Coeffic
2022-03-20 16:30:59 +01:00
parent b25aaaa431
commit f4b1892b99
-3
View File
@@ -44,9 +44,6 @@ void* dbgSerialGetSendCbCtx()
void dbgSerialSetSendCb(void* ctx, void (*cb)(void*, uint8_t))
{
// Avoid overwriting debug port config
if (cb && dbg_serial_putc) return;
dbg_serial_putc = nullptr;
dbg_serial_ctx = ctx;
dbg_serial_putc = cb;