mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
uORB:: SubscriptionMultiArray fix construction argument
- uORB::SubscriptionInterval construction requires the interval THEN the instance
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
explicit SubscriptionMultiArray(ORB_ID id)
|
||||
{
|
||||
for (uint8_t i = 0; i < SIZE; i++) {
|
||||
_subscriptions[i] = SubscriptionInterval{id, i};
|
||||
_subscriptions[i] = SubscriptionInterval{id, 0, i};
|
||||
_subscriptions[i].subscribe();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user