mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 10:00:35 +08:00
LidarLite: Fix bug for I2C ioctl
This commit is contained in:
@@ -194,7 +194,7 @@ ok:
|
||||
|
||||
int LidarLiteI2C::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
{
|
||||
switch(arg) {
|
||||
switch(cmd) {
|
||||
case SENSORIOCSQUEUEDEPTH: {
|
||||
/* lower bound is mandatory, upper bound is a sanity check */
|
||||
if ((arg < 1) || (arg > 100)) {
|
||||
|
||||
Reference in New Issue
Block a user