AP_Radio: remove superfluous linefeed from panic strings

panic adds this within the HAL layer.
This commit is contained in:
Peter Barker 2024-12-13 20:15:45 +11:00 committed by Peter Barker
parent 70e9a90ac5
commit d540a31f2e
3 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ AP_Radio_beken::AP_Radio_beken(AP_Radio &_radio) :
bool AP_Radio_beken::init(void) bool AP_Radio_beken::init(void)
{ {
if (_irq_handler_ctx != nullptr) { 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); chVTObjectInit(&timeout_vt);
_irq_handler_ctx = chThdCreateFromHeap(NULL, _irq_handler_ctx = chThdCreateFromHeap(NULL,

View File

@ -85,7 +85,7 @@ bool AP_Radio_cc2500::init(void)
{ {
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
if (_irq_handler_ctx != nullptr) { 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); chVTObjectInit(&timeout_vt);
_irq_handler_ctx = chThdCreateFromHeap(NULL, _irq_handler_ctx = chThdCreateFromHeap(NULL,

View File

@ -264,7 +264,7 @@ bool AP_Radio_cypress::init(void)
dev = hal.spi->get_device(CYRF_SPI_DEVICE); dev = hal.spi->get_device(CYRF_SPI_DEVICE);
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
if (_irq_handler_ctx != nullptr) { 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); chVTObjectInit(&timeout_vt);
_irq_handler_ctx = chThdCreateFromHeap(NULL, _irq_handler_ctx = chThdCreateFromHeap(NULL,