From d160817de3065ebf6f65d8f2f6472409b7f2259b Mon Sep 17 00:00:00 2001 From: Johan Jansen Date: Tue, 24 Mar 2015 12:06:54 +0100 Subject: [PATCH] LidarLite: Fix bug for I2C ioctl --- src/drivers/ll40ls/LidarLiteI2C.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/ll40ls/LidarLiteI2C.cpp b/src/drivers/ll40ls/LidarLiteI2C.cpp index d7f5e86294..809b5c39bb 100644 --- a/src/drivers/ll40ls/LidarLiteI2C.cpp +++ b/src/drivers/ll40ls/LidarLiteI2C.cpp @@ -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)) {