mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-29 11:40:28 +08:00
Subscription: fix ChangeInstance
This commit is contained in:
1 parent
1a89f165fd
commit
0a98c5a7f4
1 file changed
+1
-1
@@ -91,7 +91,7 @@ bool Subscription::ChangeInstance(uint8_t instance)
|
||||
DeviceMaster *device_master = uORB::Manager::get_instance()->get_device_master();
|
||||
|
||||
if (device_master != nullptr) {
|
||||
if (!device_master->deviceNodeExists(_orb_id, _instance)) {
|
||||
if (!device_master->deviceNodeExists(_orb_id, instance)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user