There's no such thing as too much static analysis

This commit is contained in:
Pavel Kirienko
2016-07-28 11:53:11 +03:00
parent af06b1a322
commit 7a9031db73
3 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -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
{