From 53b373dd829baec5858212ab966cb4f74d219b59 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 13 Aug 2013 08:50:40 +0200 Subject: [PATCH] Minor fixes to log conversion scripts --- Tools/logconv.m | 4 ++-- Tools/sdlog2_dump.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Tools/logconv.m b/Tools/logconv.m index f2ae6e5f37..c416b8095e 100644 --- a/Tools/logconv.m +++ b/Tools/logconv.m @@ -111,9 +111,9 @@ function ImportPX4LogData() time_us = sysvector.TIME_StartTime(end) - sysvector.TIME_StartTime(1); time_s = uint64(time_us*1e-6); time_m = uint64(time_s/60); - time_s = time_s - time_m * 60 + time_s = time_s - time_m * 60; - disp([sprintf('Flight log duration: %d:%d (minutes:seconds)', time_m, time_s)]); + disp([sprintf('Flight log duration: %d:%d (minutes:seconds)', time_m, time_s) char(10)]); disp(['logfile conversion finished.' char(10)]); else diff --git a/Tools/sdlog2_dump.py b/Tools/sdlog2_dump.py index a376e03d39..7fefc5908f 100644 --- a/Tools/sdlog2_dump.py +++ b/Tools/sdlog2_dump.py @@ -200,7 +200,6 @@ class SDLog2Parser: else: data = struct.unpack(self.MSG_FORMAT_STRUCT, str(self.__buffer[self.__ptr + 3 : self.__ptr + self.MSG_FORMAT_PACKET_LEN])) msg_type = data[0] - print(msg_type) if msg_type != self.MSG_TYPE_FORMAT: msg_length = data[1] if runningPython3: