mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 05:23:34 +08:00
Most enums were replaced with constants, according to MISRA
This commit is contained in:
@@ -8,9 +8,19 @@
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
/**
|
||||
* TransferID
|
||||
*/
|
||||
const uint8_t TransferID::BitLen;
|
||||
const uint8_t TransferID::Max;
|
||||
|
||||
/**
|
||||
* NodeID
|
||||
*/
|
||||
const uint8_t NodeID::ValueBroadcast;
|
||||
const uint8_t NodeID::ValueInvalid;
|
||||
const uint8_t NodeID::BitLen;
|
||||
const uint8_t NodeID::Max;
|
||||
const NodeID NodeID::Broadcast(ValueBroadcast);
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace uavcan
|
||||
const uint32_t TransferReceiver::MinTransferIntervalUSec;
|
||||
const uint32_t TransferReceiver::MaxTransferIntervalUSec;
|
||||
const uint32_t TransferReceiver::DefaultTransferIntervalUSec;
|
||||
const uint8_t TransferReceiver::IfaceIndexNotSet;
|
||||
|
||||
void TransferReceiver::registerError() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user