mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 16:43:33 +08:00
Most enums were replaced with constants, according to MISRA
This commit is contained in:
@@ -9,14 +9,13 @@
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
namespace
|
||||
{
|
||||
/**
|
||||
* Common error codes.
|
||||
* Functions that return signed integers may also return inverted error codes,
|
||||
* i.e. returned value should be inverted back to get the actual error code.
|
||||
*/
|
||||
namespace
|
||||
{
|
||||
|
||||
const int16_t ErrOk = 0;
|
||||
const int16_t ErrFailure = 1;
|
||||
const int16_t ErrInvalidParam = 2;
|
||||
|
||||
Reference in New Issue
Block a user