mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 16:13:34 +08:00
PPS: remove redundant boolean literal to silence clang-tidy
Signed-off-by: Silvan <silvan@auterion.com>
This commit is contained in:
@@ -96,9 +96,5 @@ bool PpsTimeSync::is_valid() const
|
||||
now = UINT64_MAX;
|
||||
}
|
||||
|
||||
if (now - _pps_hrt_timestamp > kPpsStaleTimeoutUs) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return now - _pps_hrt_timestamp < kPpsStaleTimeoutUs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user