mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
AP_RangeFinder: setup for split I2C transfers
this fixes PulsedLight Lidar on Linux
This commit is contained in:
parent
a2e445cf24
commit
df1da3c14e
@ -147,6 +147,9 @@ bool AP_RangeFinder_PulsedLightLRF::init(void)
|
||||
}
|
||||
_dev->set_retries(3);
|
||||
|
||||
// LidarLite needs split transfers
|
||||
_dev->set_split_transfers(true);
|
||||
|
||||
if (!(_dev->read_registers(LL40LS_HW_VERSION, &hw_version, 1) &&
|
||||
hw_version > 0 &&
|
||||
_dev->read_registers(LL40LS_SW_VERSION, &sw_version, 1) &&
|
||||
|
Loading…
Reference in New Issue
Block a user