diff --git a/libraries/AP_HAL_QURT/DeviceBus.cpp b/libraries/AP_HAL_QURT/DeviceBus.cpp index c361fdaf84..1e90978b32 100644 --- a/libraries/AP_HAL_QURT/DeviceBus.cpp +++ b/libraries/AP_HAL_QURT/DeviceBus.cpp @@ -27,7 +27,8 @@ using namespace QURT; extern const AP_HAL::HAL& hal; DeviceBus::DeviceBus(AP_HAL::Scheduler::priority_base _thread_priority) : - thread_priority(_thread_priority), semaphore() + semaphore(), + thread_priority(_thread_priority) { } diff --git a/libraries/AP_HAL_QURT/I2CDevice.cpp b/libraries/AP_HAL_QURT/I2CDevice.cpp index 1da0b004f6..0d5317f3f2 100644 --- a/libraries/AP_HAL_QURT/I2CDevice.cpp +++ b/libraries/AP_HAL_QURT/I2CDevice.cpp @@ -41,8 +41,8 @@ I2CDeviceManager::I2CDeviceManager(void) } I2CDevice::I2CDevice(uint8_t busnum, uint8_t address, uint32_t bus_clock, bool use_smbus, uint32_t timeout_ms) : - _address(address), - bus(I2CDeviceManager::businfo[busnum]) + bus(I2CDeviceManager::businfo[busnum]), + _address(address) { if (busnum >= ARRAY_SIZE(i2c_bus_ids)) { bus.fd = -1;