mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:03:33 +08:00
All unit tests compile, but crash. This is the most horrifying commit I've ever made.
This commit is contained in:
@@ -85,13 +85,6 @@ struct UAVCAN_EXPORT ${t.cpp_type_name}
|
||||
${':' if idx == 0 else ','} ${a.name}()
|
||||
% endfor
|
||||
{
|
||||
enum { MaxByteLen = ::uavcan::BitLenToByteLen<MaxBitLen>::Result };
|
||||
% if (t.kind == t.KIND_MESSAGE) and (t.has_default_dtid):
|
||||
::uavcan::StaticAssert<int(MaxByteLen) <= int(::uavcan::MaxMessageBroadcastTransferPayloadLen)>::check();
|
||||
% else:
|
||||
::uavcan::StaticAssert<int(MaxByteLen) <= int(::uavcan::MaxServiceTransferPayloadLen)>::check();
|
||||
% endif
|
||||
|
||||
::uavcan::StaticAssert<_tmpl == 0>::check(); // Usage check
|
||||
|
||||
#if UAVCAN_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user