Skip to content

Commit

Permalink
Update run_writedataset.m
Browse files Browse the repository at this point in the history
fixed bug in run_writedataset causing file to always be written to bcilab/userdata
  • Loading branch information
trmullen committed Feb 1, 2014
1 parent 60eaaed commit 9bc13e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/online_plugins/Generic/run_writedataset.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function run_writedataset(varargin)
% remove superfluous fields
eeg = rmfield(stream,{'buffer','smax','buffer_len','timestamps','timestamps_len','timestamps_ptr','streamid'});
stream.timestamp_at_beginning = toc(uint64(0));
eeg = pop_saveset(eeg,'filename',[fn fe],'filepath',env_translatepath('bcilab:/userdata'),'savemode','twofiles');
eeg = pop_saveset(eeg,'filename',[fn fe],'filepath',fastif(isempty(fp),env_translatepath('bcilab:/userdata'),fp),'savemode','twofiles');
% re-create the fdt file...
delete(fullfile(eeg.filepath, eeg.datfile));
fid = fopen(fullfile(eeg.filepath, eeg.datfile),'wb','ieee-le');
Expand Down

0 comments on commit 9bc13e7

Please sign in to comment.