listener: use PX4_INFO_RAW instead of printf

Ensures that clients will get the output of the listener.
This commit is contained in:
Beat Küng
2018-08-08 21:09:39 +02:00
committed by Lorenz Meier
parent e6d71680ab
commit f1dc8f8f48
4 changed files with 15 additions and 13 deletions
+3 -3
View File
@@ -208,7 +208,7 @@ def print_field(field):
else:
for i in range(array_length):
print("printf(\"\\t" + field.type + " " + field.name + "[" + str(i) + "]\");")
print("PX4_INFO_RAW(\"\\t" + field.type + " " + field.name + "[" + str(i) + "]\");")
print(" print_message(message." + field.name + "[" + str(i) + "]);")
return
@@ -242,11 +242,11 @@ def print_field(field):
field_name = "(" + field_name + " ? \"True\" : \"False\")"
else:
print("printf(\"\\n\\t" + field.name + "\");")
print("PX4_INFO_RAW(\"\\n\\t" + field.name + "\");")
print("\tprint_message(message."+ field.name + ");")
return
print("printf(\"\\t" + field.name + ": " + c_type + "\\n\", " + field_name + ");" )
print("PX4_INFO_RAW(\"\\t" + field.name + ": " + c_type + "\\n\", " + field_name + ");" )
def print_field_def(field):