RangeFinder_Bebop: fix spi speed

Set spi speed. Else 0 will be sent at each transfer.
This commit is contained in:
Julien Beraud 2017-01-16 15:45:53 +01:00 committed by Lucas De Marchi
parent e627bbc912
commit 8a1f4e048f
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ void AP_RangeFinder_Bebop::_reconfigure_wave()
*/
int AP_RangeFinder_Bebop::_configure_wave()
{
_spi->set_speed(AP_HAL::Device::SPEED_HIGH);
_configure_gpio(0);
return 0;
}