From 5e6f02f51e92d652696e2732ab64d1d1db604a9c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 15 Feb 2019 12:37:52 +1100 Subject: [PATCH] AP_Baro: uavcan: reindent after WITH_SEMAPHORE change (NFC) --- libraries/AP_Baro/AP_Baro_UAVCAN.cpp | 34 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_UAVCAN.cpp b/libraries/AP_Baro/AP_Baro_UAVCAN.cpp index 733d0da150..ae18b6bb7b 100644 --- a/libraries/AP_Baro/AP_Baro_UAVCAN.cpp +++ b/libraries/AP_Baro/AP_Baro_UAVCAN.cpp @@ -127,29 +127,29 @@ void AP_Baro_UAVCAN::handle_pressure(AP_UAVCAN* ap_uavcan, uint8_t node_id, cons { WITH_SEMAPHORE(_sem_registry); - AP_Baro_UAVCAN* driver = get_uavcan_backend(ap_uavcan, node_id, true); - if (driver == nullptr) { - return; - } - { - WITH_SEMAPHORE(driver->_sem_baro); - driver->_pressure = cb.msg->static_pressure; - driver->new_pressure = true; - } + AP_Baro_UAVCAN* driver = get_uavcan_backend(ap_uavcan, node_id, true); + if (driver == nullptr) { + return; + } + { + WITH_SEMAPHORE(driver->_sem_baro); + driver->_pressure = cb.msg->static_pressure; + driver->new_pressure = true; + } } void AP_Baro_UAVCAN::handle_temperature(AP_UAVCAN* ap_uavcan, uint8_t node_id, const TemperatureCb &cb) { WITH_SEMAPHORE(_sem_registry); - AP_Baro_UAVCAN* driver = get_uavcan_backend(ap_uavcan, node_id, false); - if (driver == nullptr) { - return; - } - { - WITH_SEMAPHORE(driver->_sem_baro); - driver->_temperature = cb.msg->static_temperature - C_TO_KELVIN; - } + AP_Baro_UAVCAN* driver = get_uavcan_backend(ap_uavcan, node_id, false); + if (driver == nullptr) { + return; + } + { + WITH_SEMAPHORE(driver->_sem_baro); + driver->_temperature = cb.msg->static_temperature - C_TO_KELVIN; + } } // Read the sensor