From e80e1f22fed95fd08437183dcc55c290fdfb3421 Mon Sep 17 00:00:00 2001 From: Stefan Mertl Date: Fri, 1 Apr 2016 06:55:37 +0200 Subject: [PATCH] Error check for correct first timestamp position. --- software/c++/ruwai/src/recorder.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/software/c++/ruwai/src/recorder.cpp b/software/c++/ruwai/src/recorder.cpp index 2a07e51..25e27f5 100644 --- a/software/c++/ruwai/src/recorder.cpp +++ b/software/c++/ruwai/src/recorder.cpp @@ -394,6 +394,13 @@ Recorder::pack_samplebuffer(void) MSTrace *cur_mst = traces[cur_channel]; MSRecord *msr = (MSRecord*) cur_mst->prvtptr; + + // Check for correct first timestamp pos. + if (pack_timestamp_pos[cur_channel].front() != 0) + { + syslog(LOG_WARNING, "[WARNING][pack_sample_buffer] The first pack_timestamp_pos is not 0 but %d.", (int)pack_timestamp_pos[cur_channel].front()); + } + // Compute the time of the first sample in the sample_buffer_vector. if (pack_timestamps[cur_channel].size() == 2) { -- 2.11.4.GIT