Skip to content

Commit 6fb3e27

Browse files
committed
AP_RCProtocol: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
1 parent d540a31 commit 6fb3e27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ AP_RCProtocol_SRXL2::AP_RCProtocol_SRXL2(AP_RCProtocol &_frontend) : AP_RCProtoc
4545
{
4646
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
4747
if (_singleton != nullptr) {
48-
AP_HAL::panic("Duplicate SRXL2 handler\n");
48+
AP_HAL::panic("Duplicate SRXL2 handler");
4949
}
5050

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

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

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

7575
_device_id = device_id;

0 commit comments

Comments
 (0)