diff --git a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp index b8c995a4b2..4bc97e1414 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp @@ -191,7 +191,7 @@ void UARTDriver::thread_rx_init(void) uart_rx_thread, nullptr); if (uart_rx_thread_ctx == nullptr) { - AP_HAL::panic("Could not create UART RX thread\n"); + AP_HAL::panic("Could not create UART RX thread"); } } } @@ -209,7 +209,7 @@ void UARTDriver::thread_init(void) uart_thread_trampoline, this); if (uart_thread_ctx == nullptr) { - AP_HAL::panic("Could not create UART TX thread\n"); + AP_HAL::panic("Could not create UART TX thread"); } } }