mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
Subscription: fix ChangeInstance
This commit is contained in:
@@ -91,7 +91,7 @@ bool Subscription::ChangeInstance(uint8_t instance)
|
|||||||
DeviceMaster *device_master = uORB::Manager::get_instance()->get_device_master();
|
DeviceMaster *device_master = uORB::Manager::get_instance()->get_device_master();
|
||||||
|
|
||||||
if (device_master != nullptr) {
|
if (device_master != nullptr) {
|
||||||
if (!device_master->deviceNodeExists(_orb_id, _instance)) {
|
if (!device_master->deviceNodeExists(_orb_id, instance)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user