mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 00:03:34 +08:00
DataTypeDescriptor::MaxDataTypeID
This commit is contained in:
@@ -87,6 +87,8 @@ public:
|
||||
|
||||
struct DataTypeDescriptor
|
||||
{
|
||||
enum { MaxDataTypeID = Frame::MaxDataTypeID };
|
||||
|
||||
DataTypeKind kind;
|
||||
uint16_t id;
|
||||
DataTypeSignature signature;
|
||||
@@ -101,7 +103,10 @@ struct DataTypeDescriptor
|
||||
: kind(kind)
|
||||
, id(id)
|
||||
, signature(signature)
|
||||
{ }
|
||||
{
|
||||
assert(id <= MaxDataTypeID);
|
||||
assert(kind < NumDataTypeKinds);
|
||||
}
|
||||
|
||||
bool operator!=(const DataTypeDescriptor& rhs) const { return !operator==(rhs); }
|
||||
bool operator==(const DataTypeDescriptor& rhs) const
|
||||
|
||||
Reference in New Issue
Block a user