mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 06:14:14 +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