Skip to content
Snippets Groups Projects
Commit f5ffdba4 authored by Nate Weibley's avatar Nate Weibley Committed by Daniel Agar
Browse files

Move uORB Subscription getter to header file (#6891)

parent 8a6b6f9b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment