[realtek-ambz2] Reuse Log UART for Serial

This commit is contained in:
Kuba Szczodrzyński
2023-05-31 12:37:34 +02:00
parent 1e49c3ff6f
commit e7f35c584b
4 changed files with 30 additions and 16 deletions

View File

@@ -114,9 +114,10 @@ void SerialClass::end() {
DIAG_UartReInit((IRQ_FUN)UartLogIrqHandle);
}
delete DATA;
this->data = NULL;
this->buf = NULL;
this->baudrate = 0;
delete DATA;
}
void SerialClass::flush() {