mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:53:34 +08:00
PX4:Extend manifest types & add CLI query
This commit is contained in:
committed by
Daniel Agar
parent
8ff4ed8321
commit
46a8eb6335
@@ -104,6 +104,13 @@ __EXPORT int px4_mft_query(const px4_mft_s *mft, px4_manifest_types_e type,
|
||||
break;
|
||||
|
||||
case MFT:
|
||||
if (mft->mfts[m]->pmft != nullptr) {
|
||||
system_query_func_t query = (system_query_func_t) mft->mfts[m]->pmft;
|
||||
return query(sub, val, nullptr);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
rv = -ENODATA;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user