Sensors: Ensure all mag rotations are visible to the GCS

This commit is contained in:
Lorenz Meier
2015-10-14 20:11:00 +02:00
parent 5f69857a57
commit dbcb226de6
+2
View File
@@ -1412,6 +1412,8 @@ Sensors::parameter_update_poll(bool forced)
(void)sprintf(str, "CAL_MAG%u_ID", i);
int device_id;
failed = failed || (OK != param_get(param_find(str), &device_id));
(void)sprintf(str, "CAL_MAG%u_ROT", i);
(void)param_find(str);
if (failed) {
px4_close(fd);