LidarLite: Fix bug for I2C ioctl

This commit is contained in:
Johan Jansen
2015-03-24 12:06:54 +01:00
parent 874c319888
commit d160817de3
+1 -1
View File
@@ -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)) {