Skip to content

Commit 772a592

Browse files
authored
Merge pull request #8 from dmedine/master
fixed dejitter error
2 parents 87bf511 + ff55ee0 commit 772a592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

load_xdf.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527

528528
% identify breaks in the data
529529
diffs = diff(temp(k).time_stamps);
530-
breaks_at = diffs > max(opts.JitterBreakThresholdSeconds,opts.JitterBreakThresholdSamples*temp(k).sampling_interval);
530+
breaks_at = abs(diffs) > max(opts.JitterBreakThresholdSeconds,opts.JitterBreakThresholdSamples*temp(k).sampling_interval);
531531
if any(breaks_at)
532532
% turn the break mask into a cell array of [begin,end] index ranges
533533
tmp = find(breaks_at)';

0 commit comments

Comments
 (0)