mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
mag_calibration: fix type passed to param_get()
This commit is contained in:
@@ -531,7 +531,7 @@ calibrate_return mag_calibrate_all(orb_advert_t *mavlink_log_pub)
|
|||||||
|
|
||||||
// Collect: As defined by configuration
|
// Collect: As defined by configuration
|
||||||
// start with a full mask, all six bits set
|
// start with a full mask, all six bits set
|
||||||
uint32_t cal_mask = (1 << 6) - 1;
|
int32_t cal_mask = (1 << 6) - 1;
|
||||||
param_get(param_find("CAL_MAG_SIDES"), &cal_mask);
|
param_get(param_find("CAL_MAG_SIDES"), &cal_mask);
|
||||||
|
|
||||||
calibration_sides = 0;
|
calibration_sides = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user