mag_calibration: fix type passed to param_get()

This commit is contained in:
Beat Küng
2017-10-24 22:01:36 +02:00
committed by Lorenz Meier
parent 0dcf9775f1
commit 861f5a3d11
+1 -1
View File
@@ -531,7 +531,7 @@ calibrate_return mag_calibrate_all(orb_advert_t *mavlink_log_pub)
// Collect: As defined by configuration
// 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);
calibration_sides = 0;