From 5912052a39906c14bb34de1b1a4874dbb9127bfb Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 2 Mar 2021 20:09:17 +0900 Subject: [PATCH] AP_RangeFinder: lightware legacy I2C retry count to 20 This is consistent with the non-legacy I2C protocol --- libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp b/libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp index 87b01177eb..1acc9e404e 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp @@ -21,7 +21,7 @@ extern const AP_HAL::HAL& hal; #define LIGHTWARE_DISTANCE_READ_REG 0 #define LIGHTWARE_LOST_SIGNAL_TIMEOUT_READ_REG 22 #define LIGHTWARE_LOST_SIGNAL_TIMEOUT_WRITE_REG 23 -#define LIGHTWARE_TIMEOUT_REG_DESIRED_VALUE 5 +#define LIGHTWARE_TIMEOUT_REG_DESIRED_VALUE 20 // number of lost signal confirmations for legacy protocol only #define LIGHTWARE_OUT_OF_RANGE_ADD_CM 100