From 2a9deb276a7ee1bc295cda77fb0bb94c69495189 Mon Sep 17 00:00:00 2001 From: Adam Shapiro Date: Thu, 4 Apr 2024 09:23:08 -0400 Subject: [PATCH] Fixed p1_print --format=oneline option. --- python/fusion_engine_client/applications/p1_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fusion_engine_client/applications/p1_print.py b/python/fusion_engine_client/applications/p1_print.py index 97b9bbba..a6cf4833 100755 --- a/python/fusion_engine_client/applications/p1_print.py +++ b/python/fusion_engine_client/applications/p1_print.py @@ -25,7 +25,7 @@ def print_message(header, contents, offset_bytes, format='pretty', bytes=None): raise ValueError('No data provided for binary format.') parts = [] elif isinstance(contents, MessagePayload): - if format.startswith('oneline-'): + if format.startswith('oneline'): # The repr string should always start with the message type, then other contents: # [POSE (10000), p1_time=12.029 sec, gps_time=2249:528920.500 (1360724120.500 sec), ...] # We want to reformat and insert the additional details as follows for consistency: