From c3d8ba3ea50476d36b265851e07424b78e68ce3e Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 1 Dec 2015 17:57:35 -0200 Subject: [PATCH] AP_HAL_SITL: use empty I2CDevice --- libraries/AP_HAL_SITL/HAL_SITL_Class.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp b/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp index e486dd3059..97ff874539 100644 --- a/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp +++ b/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp @@ -34,6 +34,7 @@ static AnalogIn sitlAnalogIn(&sitlState); static Empty::GPIO emptyGPIO; static Empty::Semaphore emptyI2Csemaphore; static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore); +static Empty::I2CDeviceManager i2c_mgr_instance; static Empty::SPIDeviceManager emptySPI; static Empty::OpticalFlow emptyOpticalFlow; @@ -52,6 +53,7 @@ HAL_SITL::HAL_SITL() : &sitlUart2Driver, /* uartC */ &sitlUart3Driver, /* uartD */ &sitlUart4Driver, /* uartE */ + &i2c_mgr_instance, &emptyI2C, /* i2c */ &emptyI2C, /* i2c */ &emptyI2C, /* i2c */