px4io:Add 'supported' command and uses it in rcS

This commit is contained in:
David Sidrane
2023-11-15 09:53:40 -08:00
committed by Daniel Agar
parent 968089bae4
commit 73fa6e0c52
2 changed files with 27 additions and 21 deletions
+4
View File
@@ -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");