mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 23:10:35 +08:00
Sensors: Ensure all mag rotations are visible to the GCS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user