Skip to content

Commit ad962bd

Browse files
committed
Added adjustment to meta.stopTime (previous commits only adjusted duration)
1 parent e6623f0 commit ad962bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

load_datx.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@
272272
% Shorten signals to length specified in duration
273273
signals = signals(1 : nexpected, :);
274274
elseif diffSamples > -threshold && diffSamples < 0 % diff < 5 minutes && -
275-
% Adjust duration to match nsamples in data
275+
% Adjust duration and stoptime to match nsamples in data
276276
diffSeconds = diffSamples / 20;
277277
meta.duration = meta.duration + seconds(diffSeconds);
278+
meta.stopTime = meta.stopTime + seconds(diffSeconds);
278279
else
279280
% Raise error due to large discrepancy
280281
msgID = 'load_datx:fileError';

0 commit comments

Comments
 (0)