mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 04:50:34 +08:00
GDTR list integrity check (debug builds only)
This commit is contained in:
@@ -103,7 +103,7 @@ GlobalDataTypeRegistry::RegistResult GlobalDataTypeRegistry::registImpl(Entry* d
|
||||
#if UAVCAN_DEBUG
|
||||
{ // List integrity check
|
||||
const unsigned len_after = list->getLength();
|
||||
if (len_before >= len_after)
|
||||
if ((len_before + 1) != len_after)
|
||||
{
|
||||
assert(0);
|
||||
std::abort();
|
||||
|
||||
Reference in New Issue
Block a user