From dd27984eacc47d9f9340eed7e4dab597e27af80a Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Fri, 4 Jan 2013 16:20:22 -0800 Subject: [PATCH] SITL: instansiate EmptyI2CDriver with EmptySemaphore --- libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp b/libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp index 382a8a7e58..a3d00a6832 100644 --- a/libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp +++ b/libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp @@ -34,7 +34,8 @@ static SITLAnalogIn sitlAnalogIn(&sitlState); // use the Empty HAL for hardware we don't emulate static Empty::EmptyGPIO emptyGPIO; -static Empty::EmptyI2CDriver emptyI2C; +static Empty::EmptySemaphore emptyI2Csemaphore; +static Empty::EmptyI2CDriver emptyI2C(&emptyI2Csemaphore); static Empty::EmptySPIDeviceManager emptySPI; static SITLUARTDriver sitlUart0Driver(0, &sitlState);