mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:33:34 +08:00
Changed default prototype of the PanicListener callback
This commit is contained in:
@@ -17,7 +17,7 @@ namespace uavcan
|
|||||||
* void (const protocol::Panic&)
|
* void (const protocol::Panic&)
|
||||||
* The listener can be stopped from the callback.
|
* The listener can be stopped from the callback.
|
||||||
*/
|
*/
|
||||||
template <typename Callback = void(*)(const protocol::Panic&)>
|
template <typename Callback = void(*)(const ReceivedDataStructure<protocol::Panic>&)>
|
||||||
class PanicListener : Noncopyable
|
class PanicListener : Noncopyable
|
||||||
{
|
{
|
||||||
typedef MethodBinder<PanicListener*, void(PanicListener::*)(const ReceivedDataStructure<protocol::Panic>&)>
|
typedef MethodBinder<PanicListener*, void(PanicListener::*)(const ReceivedDataStructure<protocol::Panic>&)>
|
||||||
|
|||||||
Reference in New Issue
Block a user