mirror of https://github.com/ArduPilot/ardupilot
AP_RCProtocol: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
This commit is contained in:
parent
d540a31f2e
commit
6fb3e27b8d
|
@ -45,7 +45,7 @@ AP_RCProtocol_SRXL2::AP_RCProtocol_SRXL2(AP_RCProtocol &_frontend) : AP_RCProtoc
|
||||||
{
|
{
|
||||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
||||||
if (_singleton != nullptr) {
|
if (_singleton != nullptr) {
|
||||||
AP_HAL::panic("Duplicate SRXL2 handler\n");
|
AP_HAL::panic("Duplicate SRXL2 handler");
|
||||||
}
|
}
|
||||||
|
|
||||||
_singleton = this;
|
_singleton = this;
|
||||||
|
@ -64,12 +64,12 @@ void AP_RCProtocol_SRXL2::_bootstrap(uint8_t device_id)
|
||||||
|
|
||||||
// Init the local SRXL device
|
// Init the local SRXL device
|
||||||
if (!srxlInitDevice(device_id, SRXL_DEVICE_PRIORITY, SRXL_DEVICE_INFO, device_id)) {
|
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
|
// 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)) {
|
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;
|
_device_id = device_id;
|
||||||
|
|
Loading…
Reference in New Issue