mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
GDTR list integrity check (debug builds only)
This commit is contained in:
parent
5cd0aff0d3
commit
afc56cf87b
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user