From c59a74a737b99fdb92bb3e7e81c46bec9248a5e7 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 6 Nov 2017 10:29:25 -0500 Subject: [PATCH] external_example: fix compile errors --- external_example/plugins/example/example_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external_example/plugins/example/example_impl.cpp b/external_example/plugins/example/example_impl.cpp index f49fe218e1..2f7ec61033 100644 --- a/external_example/plugins/example/example_impl.cpp +++ b/external_example/plugins/example/example_impl.cpp @@ -20,7 +20,7 @@ void ExampleImpl::init() _parent->register_mavlink_message_handler( MAVLINK_MSG_ID_HEARTBEAT, - std::bind(&ExampleImpl::process_heartbeat, this, _1), (void *)this); + std::bind(&ExampleImpl::process_heartbeat, this, _1), this); } @@ -31,14 +31,14 @@ void ExampleImpl::deinit() void ExampleImpl::say_hello() const { - Debug() << "Hello world, I'm a new plugin."; + LogInfo() << "Hello world, I'm a new plugin."; } void ExampleImpl::process_heartbeat(const mavlink_message_t &message) { UNUSED(message); - Debug() << "I received a heartbeat"; + LogDebug() << "I received a heartbeat"; }