mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Compass: add set_dev_id when initialising HIL
This commit is contained in:
parent
13e5e03a0d
commit
84f3e70b10
@ -54,6 +54,7 @@ AP_Compass_HIL::init(void)
|
||||
if (!register_compass(dev_id, _compass_instance[i])) {
|
||||
return false;
|
||||
}
|
||||
set_dev_id(_compass_instance[i], dev_id);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user