mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 17:43:33 +08:00
GDTR fix - double remove() before registering
This commit is contained in:
@@ -75,11 +75,17 @@ public:
|
||||
return RegistResultFrozen;
|
||||
|
||||
static Entry entry;
|
||||
const RegistResult remove_res = remove(&entry);
|
||||
if (remove_res != RegistResultOk)
|
||||
return remove_res;
|
||||
|
||||
{
|
||||
const RegistResult remove_res = remove(&entry);
|
||||
if (remove_res != RegistResultOk)
|
||||
return remove_res;
|
||||
}
|
||||
entry = Entry(DataTypeKind(Type::DataTypeKind), id, Type::getDataTypeSignature(), Type::getDataTypeFullName());
|
||||
{
|
||||
const RegistResult remove_res = remove(&entry);
|
||||
if (remove_res != RegistResultOk)
|
||||
return remove_res;
|
||||
}
|
||||
return registImpl(&entry);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user