mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:43:33 +08:00
GDTR tracing
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <uavcan/global_data_type_registry.hpp>
|
||||
#include <uavcan/internal/debug.hpp>
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
@@ -111,6 +112,15 @@ GlobalDataTypeRegistry& GlobalDataTypeRegistry::instance()
|
||||
return inst;
|
||||
}
|
||||
|
||||
void GlobalDataTypeRegistry::freeze()
|
||||
{
|
||||
if (!frozen_)
|
||||
{
|
||||
frozen_ = true;
|
||||
UAVCAN_TRACE("GlobalDataTypeRegistry", "Frozen");
|
||||
}
|
||||
}
|
||||
|
||||
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
|
||||
{
|
||||
const List* list = selectList(kind);
|
||||
|
||||
Reference in New Issue
Block a user