Changed default prototype of the PanicListener callback

This commit is contained in:
Pavel Kirienko
2014-03-19 19:55:23 +04:00
parent 3829506368
commit cee6ea3529
@@ -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>&)>