Skip to content

Commit c05e72d

Browse files
committed
Initial_Servo_Position: increase timout to 5 seconds
Due to the ping() thread running every second and the forced delays between operations (500ms), the target was often timing-out before reaching the last step. Increasing to 5 seconds doesn't seem to harm any operation.
1 parent 6f9992f commit c05e72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Tools/Factory_Set_Initial_Servo_Position/Factory_Set_Initial_Servo_Position.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static std::array<InitialServoPosition, 6> const INITIAL_SERVO_POSITION =
4949

5050
bool set_initial_servo_position(int const id, float const target_angle)
5151
{
52-
auto isTimeout = [](unsigned long const start) -> bool { return ((millis() - start) > 2000); };
52+
auto isTimeout = [](unsigned long const start) -> bool { return ((millis() - start) > 5000); };
5353

5454
auto start = millis();
5555

0 commit comments

Comments
 (0)