mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 06:47:35 +08:00
Error codes are constants, not enum. That fixes another MISRA violation.
This commit is contained in:
@@ -226,7 +226,7 @@ class SocketCanIface : public uavcan::ICanIface
|
||||
/*
|
||||
* Flags
|
||||
*/
|
||||
loopback = !!(msg.msg_flags & MSG_CONFIRM);
|
||||
loopback = (msg.msg_flags & static_cast<int>(MSG_CONFIRM)) != 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user