msg: don't implement print_message for fmu-v2

This saves about 3.4k of flash for fmu-v2.
This commit is contained in:
Julian Oes
2019-10-18 11:23:32 +02:00
committed by Lorenz Meier
parent e9c9fb8239
commit d3da4a92e0
3 changed files with 21 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
@# - md5sum (String) MD5Sum of the .msg specification
@# - search_path (dict) search paths for genmsg
@# - topics (List of String) multi-topic names
@# - constrained_flash set to true if flash is constrained
@# - ids (List) list of all RTPS msg ids
@###############################################
/****************************************************************************
@@ -82,9 +83,14 @@ ORB_DEFINE(@multi_topic, struct @uorb_struct, @(struct_size-padding_end_size), _
void print_message(const @uorb_struct& message)
{
@[if constrained_flash]
(void)message;
PX4_INFO_RAW("Not implemented on flash constrained hardware\n");
@[else]
PX4_INFO_RAW(" @(uorb_struct)\n");
@[for field in sorted_fields]@
@( print_field(field) )@
@[end for]@
@[end if]@
}