From ad431d2f256f3eafd4044a415d8a8a88655f42f3 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Wed, 7 Nov 2012 21:13:34 +0900 Subject: [PATCH] ArduCopter: fixed HIL build caused by optical flow semaphore changes --- ArduCopter/ArduCopter.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 3de067ad62..f54daac440 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -307,9 +307,9 @@ AP_Compass_HIL compass; // never used AP_Baro_BMP085_HIL barometer; #ifdef OPTFLOW_ENABLED #if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2 -AP_OpticalFlow_ADNS3080 optflow(&spi3_semaphore,OPTFLOW_CS_PIN); +AP_OpticalFlow_ADNS3080 optflow(OPTFLOW_CS_PIN); #else -AP_OpticalFlow_ADNS3080 optflow(NULL,OPTFLOW_CS_PIN); +AP_OpticalFlow_ADNS3080 optflow(OPTFLOW_CS_PIN); #endif #endif #ifdef DESKTOP_BUILD