From 6fb3e27b8d5dda9f656828636edf365202775eb6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 13 Dec 2024 20:15:45 +1100 Subject: [PATCH] AP_RCProtocol: remove superfluous linefeed from panic strings panic adds this within the HAL layer. --- libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp index f0f7cafdea6af..2ceb6c0ed6aa9 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp @@ -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; @@ -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;