Skip to content

Commit

Permalink
AP_RCProtocol: 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 d540a31 commit 6fb3e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ AP_RCProtocol_SRXL2::AP_RCProtocol_SRXL2(AP_RCProtocol &_frontend) : AP_RCProtoc
{
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
if (_singleton != nullptr) {
AP_HAL::panic("Duplicate SRXL2 handler\n");
AP_HAL::panic("Duplicate SRXL2 handler");
}

_singleton = this;
Expand All @@ -64,12 +64,12 @@ void AP_RCProtocol_SRXL2::_bootstrap(uint8_t device_id)

// Init the local SRXL device
if (!srxlInitDevice(device_id, SRXL_DEVICE_PRIORITY, SRXL_DEVICE_INFO, device_id)) {
AP_HAL::panic("Failed to initialize SRXL2 device\n");
AP_HAL::panic("Failed to initialize SRXL2 device");
}

// Init the SRXL bus: The bus index must always be < SRXL_NUM_OF_BUSES -- in this case, it can only be 0
if (!srxlInitBus(0, 0, SRXL_SUPPORTED_BAUD_RATES)) {
AP_HAL::panic("Failed to initialize SRXL2 bus\n");
AP_HAL::panic("Failed to initialize SRXL2 bus");
}

_device_id = device_id;
Expand Down

0 comments on commit 6fb3e27

Please sign in to comment.