AP_OpticalFlow: change for new PX4 device paths

This commit is contained in:
Andrew Tridgell 2015-02-13 19:21:31 +11:00
parent 9f7e20090c
commit 995311f807
1 changed files with 1 additions and 1 deletions

View File

@ -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) {