px4io:Use manifest query mechanism

This commit is contained in:
David Sidrane
2018-07-17 12:52:57 -07:00
committed by Lorenz Meier
parent 840b3ae985
commit 68aa5664b0
+4 -1
View File
@@ -446,7 +446,6 @@ namespace
{
PX4IO *g_dev = nullptr;
}
PX4IO::PX4IO(device::Device *interface) :
@@ -3344,6 +3343,10 @@ px4io_main(int argc, char *argv[])
goto out;
}
if (!PX4_MFT_HW_SUPPORTED(PX4_MFT_PX4IO)) {
errx(1, "PX4IO Not Supported");
}
if (!strcmp(argv[1], "start")) {
start(argc - 1, argv + 1);
}