Skip to content

Commit d540a31

Browse files
committed
AP_Radio: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
1 parent 70e9a90 commit d540a31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libraries/AP_Radio/AP_Radio_bk2425.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ AP_Radio_beken::AP_Radio_beken(AP_Radio &_radio) :
140140
bool AP_Radio_beken::init(void)
141141
{
142142
if (_irq_handler_ctx != nullptr) {
143-
AP_HAL::panic("AP_Radio_beken: double instantiation of irq_handler\n");
143+
AP_HAL::panic("AP_Radio_beken: double instantiation of irq_handler");
144144
}
145145
chVTObjectInit(&timeout_vt);
146146
_irq_handler_ctx = chThdCreateFromHeap(NULL,

libraries/AP_Radio/AP_Radio_cc2500.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bool AP_Radio_cc2500::init(void)
8585
{
8686
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
8787
if (_irq_handler_ctx != nullptr) {
88-
AP_HAL::panic("AP_Radio_cc2500: double instantiation of irq_handler\n");
88+
AP_HAL::panic("AP_Radio_cc2500: double instantiation of irq_handler");
8989
}
9090
chVTObjectInit(&timeout_vt);
9191
_irq_handler_ctx = chThdCreateFromHeap(NULL,

libraries/AP_Radio/AP_Radio_cypress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool AP_Radio_cypress::init(void)
264264
dev = hal.spi->get_device(CYRF_SPI_DEVICE);
265265
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
266266
if (_irq_handler_ctx != nullptr) {
267-
AP_HAL::panic("AP_Radio_cypress: double instantiation of irq_handler\n");
267+
AP_HAL::panic("AP_Radio_cypress: double instantiation of irq_handler");
268268
}
269269
chVTObjectInit(&timeout_vt);
270270
_irq_handler_ctx = chThdCreateFromHeap(NULL,

0 commit comments

Comments
 (0)