mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
STM32: fixed an implicit conversion warning
This commit is contained in:
parent
ba9af4ce93
commit
2d0225886d
@ -369,7 +369,7 @@ void adjustUtc(uavcan::UtcDuration adjustment)
|
||||
{
|
||||
utc_locked =
|
||||
(std::abs(utc_rel_rate_ppm) < utc_sync_params.lock_thres_rate_ppm) &&
|
||||
(std::abs(utc_prev_adj) < utc_sync_params.lock_thres_offset.toUSec());
|
||||
(std::abs(utc_prev_adj) < float(utc_sync_params.lock_thres_offset.toUSec()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user