mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 11:40:34 +08:00
Linux: enabled commander module
The commander module now compiles for Linux. state_machine_helper_linux.cpp iterates over the virtual devices vs all devices under /dev as per NuttX when disabling publishing. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -467,5 +467,13 @@ void VDev::showDevices()
|
||||
}
|
||||
}
|
||||
|
||||
const char *VDev::devList(unsigned int *next)
|
||||
{
|
||||
for (;*next<PX4_MAX_DEV; (*next)++)
|
||||
if (devmap[*next])
|
||||
return devmap[(*next)++]->name;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
} // namespace device
|
||||
|
||||
|
||||
Reference in New Issue
Block a user