AP_OpticalFlow: fixed SPI name for pixart flow sensor

This commit is contained in:
Andrew Tridgell 2018-01-08 10:18:20 +11:00
parent ebeda12953
commit 7c8cf0a39e
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
}