diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 11:37:30 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 11:37:30 +0100 |
commit | b351d67175e328ce3ab16642cdc69f6b8a239366 (patch) | |
tree | 6df9c2e54d70dca72988835639a55c943e1afe62 /src/examples/subscriber/subscriber.cpp | |
parent | 244c1cb58387c5e8825abd4b27b4ff0b893f5383 (diff) | |
download | px4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.tar.gz px4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.tar.bz2 px4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.zip |
fix print for px4
Diffstat (limited to 'src/examples/subscriber/subscriber.cpp')
-rw-r--r-- | src/examples/subscriber/subscriber.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp index d6bc0bf37..fa863463b 100644 --- a/src/examples/subscriber/subscriber.cpp +++ b/src/examples/subscriber/subscriber.cpp @@ -34,7 +34,7 @@ using namespace px4; */ void rc_channels_callback(const PX4_TOPIC_T(rc_channels) &msg) { - PX4_INFO("I heard: [%lu]", msg.timestamp_last_valid); + PX4_INFO("I heard: [%llu]", msg.timestamp_last_valid); } // void rc_channels_callback(int i) // { @@ -99,6 +99,7 @@ PX4_MAIN_FUNCTION(subscriber) * will exit when Ctrl-C is pressed, or the node is shutdown by the master. */ n.spin(); + PX4_INFO("finished, returning"); return 0; } |