mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:03:35 +08:00
There's no such thing as too much static analysis
This commit is contained in:
@@ -19,10 +19,11 @@ class UAVCAN_EXPORT TransferCRC;
|
||||
enum DataTypeKind
|
||||
{
|
||||
DataTypeKindService,
|
||||
DataTypeKindMessage,
|
||||
NumDataTypeKinds
|
||||
DataTypeKindMessage
|
||||
};
|
||||
|
||||
static const uint8_t NumDataTypeKinds = 2;
|
||||
|
||||
|
||||
static inline DataTypeKind getDataTypeKindForTransferType(const TransferType tt)
|
||||
{
|
||||
|
||||
@@ -19,10 +19,11 @@ enum TransferType
|
||||
{
|
||||
TransferTypeServiceResponse = 0,
|
||||
TransferTypeServiceRequest = 1,
|
||||
TransferTypeMessageBroadcast = 2,
|
||||
NumTransferTypes = 3
|
||||
TransferTypeMessageBroadcast = 2
|
||||
};
|
||||
|
||||
static const uint8_t NumTransferTypes = 3;
|
||||
|
||||
|
||||
class UAVCAN_EXPORT TransferPriority
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user