Skip to content
Snippets Groups Projects
Commit 0dcf9775 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

LandDetector: make type passed to param_get() explicit

parent 41a4d07e
No related branches found
No related tags found
No related merge requests found
......@@ -169,9 +169,9 @@ void LandDetector::_check_params(const bool force)
if (updated || force) {
_update_params();
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;
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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment