From 8a8cc26b13b1f9468c0301a9f0bb7c96b36c951d Mon Sep 17 00:00:00 2001 From: TSC21 Date: Tue, 7 Aug 2018 15:03:42 +0100 Subject: [PATCH] uorb templates: remove redundant timestamp field --- msg/templates/uorb/msg.cpp.template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msg/templates/uorb/msg.cpp.template b/msg/templates/uorb/msg.cpp.template index cbb6d696e4..9003194848 100644 --- a/msg/templates/uorb/msg.cpp.template +++ b/msg/templates/uorb/msg.cpp.template @@ -81,9 +81,8 @@ ORB_DEFINE(@multi_topic, struct @uorb_struct, @(struct_size-padding_end_size), _ void print_message(const @uorb_struct& message) { PX4_INFO_RAW(" @(uorb_struct)\n"); - PX4_INFO_RAW("\ttimestamp: %" PRIu64, message.timestamp); if (message.timestamp != 0) { - PX4_INFO_RAW(" (%.6f seconds ago)\n", hrt_elapsed_time(&message.timestamp) / 1e6); + PX4_INFO_RAW("\t(%.6f seconds ago)\n", hrt_elapsed_time(&message.timestamp) / 1e6); } else { PX4_INFO_RAW("\n"); }