mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ll40ls: increase the sleep time after resetting registers
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
parent
cbf3cee096
commit
56150c28dd
@ -335,12 +335,13 @@ int LidarLiteI2C::reset_sensor()
|
||||
{
|
||||
int ret;
|
||||
ret = write_reg(LL40LS_MEASURE_REG, LL40LS_MSRREG_RESET);
|
||||
|
||||
if (ret != OK) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// wait for sensor reset to complete
|
||||
usleep(1000);
|
||||
usleep(50000);
|
||||
ret = write_reg(LL40LS_SIG_COUNT_VAL_REG, LL40LS_SIG_COUNT_VAL_MAX);
|
||||
|
||||
if (ret != OK) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user