From 7c8cf0a39e7c466ed9ad63c8ee610c922c701778 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 8 Jan 2018 10:18:20 +1100 Subject: [PATCH] AP_OpticalFlow: fixed SPI name for pixart flow sensor --- libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp b/libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp index c3ad1da741..8803ac48e1 100644 --- a/libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp +++ b/libraries/AP_OpticalFlow/AP_OpticalFlow_Pixart.cpp @@ -83,7 +83,7 @@ extern const AP_HAL::HAL& hal; AP_OpticalFlow_Pixart::AP_OpticalFlow_Pixart(OpticalFlow &_frontend) : OpticalFlow_backend(_frontend) { - _dev = std::move(hal.spi->get_device("external0m3")); + _dev = std::move(hal.spi->get_device("pixart")); }