aboutsummaryrefslogtreecommitdiff
path: root/src/examples/publisher
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-11-28 11:37:30 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-11-28 11:37:30 +0100
commitb351d67175e328ce3ab16642cdc69f6b8a239366 (patch)
tree6df9c2e54d70dca72988835639a55c943e1afe62 /src/examples/publisher
parent244c1cb58387c5e8825abd4b27b4ff0b893f5383 (diff)
downloadpx4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.tar.gz
px4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.tar.bz2
px4-firmware-b351d67175e328ce3ab16642cdc69f6b8a239366.zip
fix print for px4
Diffstat (limited to 'src/examples/publisher')
-rw-r--r--src/examples/publisher/publisher.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/examples/publisher/publisher.cpp b/src/examples/publisher/publisher.cpp
index 521c7c838..5c7156c08 100644
--- a/src/examples/publisher/publisher.cpp
+++ b/src/examples/publisher/publisher.cpp
@@ -80,7 +80,7 @@ PX4_MAIN_FUNCTION(publisher)
PX4_TOPIC_T(rc_channels) msg;
msg.timestamp_last_valid = px4::get_time_micros();
- PX4_INFO("%lu", msg.timestamp_last_valid);
+ PX4_INFO("%llu", msg.timestamp_last_valid);
/**
* The publish() function is how you send messages. The parameter
@@ -96,6 +96,5 @@ PX4_MAIN_FUNCTION(publisher)
++count;
}
-
return 0;
}