Removing test code.

This commit is contained in:
jwilson
2016-02-19 16:59:49 +01:00
committed by Julian Oes
parent 8625641638
commit 9a97140ad8
3 changed files with 3 additions and 19 deletions
+2 -5
View File
@@ -230,19 +230,19 @@ extern "C" {
int px4_ioctl(int fd, int cmd, unsigned long arg)
{
PX4_DEBUG("px4_ioctl fd = %d", fd);
int ret = 0;
VDev *dev = get_vdev(fd);
if (dev) {
ret = dev->ioctl(filemap[fd], cmd, arg);
} else {
PX4_ERR("px4_ioctl: vdev handle not available, file handle: %d", fd);
ret = -EINVAL;
}
if (ret < 0) {
PX4_ERR("px4_ioctl: call failed: %d", ret);
px4_errno = -ret;
}
@@ -305,9 +305,6 @@ extern "C" {
fd_pollable = true;
}
}
else {
PX4_DEBUG("vdev invalid, index: %d, name: %s, handle: 0x%X", i, thread_name, fds[i].fd);
}
}
// If any FD can be polled, lock the semaphore and