mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 06:10:34 +08:00
px4io:Add 'supported' command and uses it in rcS
This commit is contained in:
committed by
Daniel Agar
parent
968089bae4
commit
73fa6e0c52
@@ -1556,6 +1556,10 @@ int PX4IO::custom_command(int argc, char *argv[])
|
||||
{
|
||||
const char *verb = argv[0];
|
||||
|
||||
if (!strcmp(verb, "supported")) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!strcmp(verb, "checkcrc")) {
|
||||
if (is_running()) {
|
||||
PX4_ERR("io must be stopped");
|
||||
|
||||
Reference in New Issue
Block a user