From 39be6be3631ed47b0e3fd3966e187fcee7d4ec03 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 9 Oct 2012 11:36:21 -0700 Subject: [PATCH] AP_OpticalFlow_test: fix build with NULL semaphore. --- .../examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde | 2 +- libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde index 12807d4dec..5bd0c2087f 100644 --- a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde @@ -27,7 +27,7 @@ FastSerialPort0(Serial); // FTDI/console #define CONFIG_MPU6000_CHIP_SELECT_PIN 53 // MPU600 chip select pin //AP_OpticalFlow_ADNS3080 flowSensor; // for APM1 -AP_OpticalFlow_ADNS3080 flowSensor(A3); // override chip select pin to use A3 if using APM2 or APM2.5 +AP_OpticalFlow_ADNS3080 flowSensor(NULL,A3); // override chip select pin to use A3 if using APM2 or APM2.5 Arduino_Mega_ISR_Registry isr_registry; AP_TimerProcess scheduler; diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile new file mode 100644 index 0000000000..a5d5e7918b --- /dev/null +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/Makefile @@ -0,0 +1,2 @@ +BOARD = mega2560 +include ../../../AP_Common/Arduino.mk