Re-enabling code to handle DF framework

Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-11-16 13:51:39 -08:00
parent 40b488d693
commit dbe3b0e52b
7 changed files with 75 additions and 44 deletions
+10 -6
View File
@@ -552,12 +552,16 @@ void VDev::showDevices()
PX4_INFO("DF Devices:");
// TODO NOT IMPLEMENTED
// std::string devname;
// for (unsigned int index=0; i == 0; ++i) {
// if (DevMgr::getNextDeviceName(index, devname) == 0) {
// PX4_INFO(" %s", devname.c_str());
// }
// }
std::string devname;
unsigned int index = 0;
i = 0;
do {
// Each look increments index and returns -1 if end reached
i = DevMgr::getNextDeviceName(index, devname);
if (i == 0) {
PX4_INFO(" %s", devname.c_str());
}
} while (i==0);
}
void VDev::showTopics()