AP_Compass: add set_dev_id when initialising HIL

This commit is contained in:
bugobliterator 2020-09-13 14:58:35 +05:30 committed by Andrew Tridgell
parent 13e5e03a0d
commit 84f3e70b10

View File

@ -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;
}