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

This commit is contained in:
David Sidrane
2023-11-20 08:54:32 -05:00
committed by David Sidrane
parent 9bed8f48c7
commit 8f02184669
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");