From 995311f807f7333533b808e582bb5ec3ffd37f9c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Feb 2015 19:21:31 +1100 Subject: [PATCH] AP_OpticalFlow: change for new PX4 device paths --- libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.cpp b/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.cpp index 6266ec0195..643f4d39ee 100644 --- a/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.cpp +++ b/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.cpp @@ -41,7 +41,7 @@ OpticalFlow_backend(_frontend) void AP_OpticalFlow_PX4::init(void) { - _fd = open(PX4FLOW_DEVICE_PATH, O_RDONLY); + _fd = open(PX4FLOW0_DEVICE_PATH, O_RDONLY); // check for failure to open device if (_fd == -1) {