mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-19 03:00:34 +08:00
px4io:Use manifest query mechanism
This commit is contained in:
committed by
Lorenz Meier
parent
840b3ae985
commit
68aa5664b0
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user