From 861f5a3d112d84e3d8579a067876d7244a761933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= <beat-kueng@gmx.net> Date: Tue, 24 Oct 2017 22:01:36 +0200 Subject: [PATCH] mag_calibration: fix type passed to param_get() --- src/modules/commander/mag_calibration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp index 062c56c1ad..ca6df064b7 100644 --- a/src/modules/commander/mag_calibration.cpp +++ b/src/modules/commander/mag_calibration.cpp @@ -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; -- GitLab