mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 18:10:34 +08:00
fix code style
This commit is contained in:
@@ -58,9 +58,8 @@ DataValidatorGroup::DataValidatorGroup(unsigned siblings) :
|
||||
next = new DataValidator();
|
||||
if(i == 0) {
|
||||
_first = next;
|
||||
}
|
||||
else {
|
||||
prev->sibling(next);
|
||||
} else {
|
||||
prev->setSibling(next);
|
||||
}
|
||||
prev = next;
|
||||
}
|
||||
@@ -87,7 +86,7 @@ DataValidator *DataValidatorGroup::add_new_validator()
|
||||
if (!validator) {
|
||||
return nullptr;
|
||||
}
|
||||
_last->sibling(validator);
|
||||
_last->setSibling(validator);
|
||||
_last = validator;
|
||||
_last->set_timeout(_timeout_interval_us);
|
||||
return _last;
|
||||
|
||||
Reference in New Issue
Block a user