mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 10:03:33 +08:00
clang-tidy: enable readability-simplify-boolean-expr and fix
This commit is contained in:
@@ -45,7 +45,7 @@ namespace systemlib
|
||||
void
|
||||
Hysteresis::set_hysteresis_time_from(const bool from_state, const hrt_abstime new_hysteresis_time_us)
|
||||
{
|
||||
if (from_state == true) {
|
||||
if (from_state) {
|
||||
_time_from_true_us = new_hysteresis_time_us;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user