Skip to content

Commit 39d988a

Browse files
committed
Add comments
1 parent 6d98d5c commit 39d988a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/src/sl_lidar_driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ namespace sl {
176176

177177
//Tune tail
178178
for (i = count - 1; i < count; i--) {
179+
// To avoid array overruns, use the i < count condition
179180
if (getDistanceQ2(nodebuffer[i]) == 0) {
180181
continue;
181182
}

0 commit comments

Comments
 (0)