Skip to content

Commit

Permalink
AP_Radio: remove superfluous linefeed from panic strings
Browse files Browse the repository at this point in the history
panic adds this within the HAL layer.
  • Loading branch information
peterbarker committed Dec 13, 2024
1 parent 70e9a90 commit d540a31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_Radio/AP_Radio_bk2425.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Radio/AP_Radio_cc2500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Radio/AP_Radio_cypress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d540a31

Please sign in to comment.