mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Move uORB Subscription getter to header file (#6891)
This commit is contained in:
parent
8a6b6f9be5
commit
f5ffdba4cc
@ -151,9 +151,6 @@ bool Subscription<T>::check_updated()
|
||||
return SubscriptionBase::updated();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
const T &Subscription<T>::get() { return _data; }
|
||||
|
||||
template class __EXPORT Subscription<actuator_armed_s>;
|
||||
template class __EXPORT Subscription<actuator_controls_s>;
|
||||
template class __EXPORT Subscription<att_pos_mocap_s>;
|
||||
|
||||
@ -193,7 +193,7 @@ public:
|
||||
/*
|
||||
* This function gets the T struct data
|
||||
* */
|
||||
const T &get();
|
||||
const T &get() const { return _data; }
|
||||
private:
|
||||
T _data;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user