From d540a31f2effdb62db09bdbc540eff2a4e1cf01d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 13 Dec 2024 20:15:45 +1100 Subject: [PATCH] AP_Radio: remove superfluous linefeed from panic strings panic adds this within the HAL layer. --- libraries/AP_Radio/AP_Radio_bk2425.cpp | 2 +- libraries/AP_Radio/AP_Radio_cc2500.cpp | 2 +- libraries/AP_Radio/AP_Radio_cypress.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Radio/AP_Radio_bk2425.cpp b/libraries/AP_Radio/AP_Radio_bk2425.cpp index 773205cf88..d9dd185d6a 100644 --- a/libraries/AP_Radio/AP_Radio_bk2425.cpp +++ b/libraries/AP_Radio/AP_Radio_bk2425.cpp @@ -140,7 +140,7 @@ AP_Radio_beken::AP_Radio_beken(AP_Radio &_radio) : bool AP_Radio_beken::init(void) { if (_irq_handler_ctx != nullptr) { - AP_HAL::panic("AP_Radio_beken: double instantiation of irq_handler\n"); + AP_HAL::panic("AP_Radio_beken: double instantiation of irq_handler"); } chVTObjectInit(&timeout_vt); _irq_handler_ctx = chThdCreateFromHeap(NULL, diff --git a/libraries/AP_Radio/AP_Radio_cc2500.cpp b/libraries/AP_Radio/AP_Radio_cc2500.cpp index cce9b4ffcf..83ee84f9ce 100644 --- a/libraries/AP_Radio/AP_Radio_cc2500.cpp +++ b/libraries/AP_Radio/AP_Radio_cc2500.cpp @@ -85,7 +85,7 @@ bool AP_Radio_cc2500::init(void) { #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS if (_irq_handler_ctx != nullptr) { - AP_HAL::panic("AP_Radio_cc2500: double instantiation of irq_handler\n"); + AP_HAL::panic("AP_Radio_cc2500: double instantiation of irq_handler"); } chVTObjectInit(&timeout_vt); _irq_handler_ctx = chThdCreateFromHeap(NULL, diff --git a/libraries/AP_Radio/AP_Radio_cypress.cpp b/libraries/AP_Radio/AP_Radio_cypress.cpp index fc27088469..43bebe982c 100644 --- a/libraries/AP_Radio/AP_Radio_cypress.cpp +++ b/libraries/AP_Radio/AP_Radio_cypress.cpp @@ -264,7 +264,7 @@ bool AP_Radio_cypress::init(void) dev = hal.spi->get_device(CYRF_SPI_DEVICE); #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS if (_irq_handler_ctx != nullptr) { - AP_HAL::panic("AP_Radio_cypress: double instantiation of irq_handler\n"); + AP_HAL::panic("AP_Radio_cypress: double instantiation of irq_handler"); } chVTObjectInit(&timeout_vt); _irq_handler_ctx = chThdCreateFromHeap(NULL,