mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 06:21:37 +08:00
LandDetector: make type passed to param_get() explicit
This commit is contained in:
@@ -169,9 +169,9 @@ void LandDetector::_check_params(const bool force)
|
|||||||
if (updated || force) {
|
if (updated || force) {
|
||||||
_update_params();
|
_update_params();
|
||||||
uint32_t flight_time;
|
uint32_t flight_time;
|
||||||
param_get(_p_total_flight_time_high, &flight_time);
|
param_get(_p_total_flight_time_high, (int32_t *)&flight_time);
|
||||||
_total_flight_time = ((uint64_t)flight_time) << 32;
|
_total_flight_time = ((uint64_t)flight_time) << 32;
|
||||||
param_get(_p_total_flight_time_low, &flight_time);
|
param_get(_p_total_flight_time_low, (int32_t *)&flight_time);
|
||||||
_total_flight_time |= flight_time;
|
_total_flight_time |= flight_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user