Skip to content

Commit d8885ee

Browse files
committed
add delay
1 parent 32064e3 commit d8885ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ydlidar_driver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ namespace ydlidar{
110110
sendCommand(LIDAR_CMD_STOP);
111111

112112
}
113+
delay(40);
113114
clearDTR();
114115
return RESULT_OK;
115116
}
@@ -1192,6 +1193,7 @@ namespace ydlidar{
11921193
sendCommand(LIDAR_CMD_FORCE_STOP);
11931194
sendCommand(LIDAR_CMD_STOP);
11941195
}
1196+
delay(20);
11951197

11961198
stopMotor();
11971199

0 commit comments

Comments
 (0)