We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60eaaed commit 9bc13e7Copy full SHA for 9bc13e7
code/online_plugins/Generic/run_writedataset.m
@@ -43,7 +43,7 @@ function run_writedataset(varargin)
43
% remove superfluous fields
44
eeg = rmfield(stream,{'buffer','smax','buffer_len','timestamps','timestamps_len','timestamps_ptr','streamid'});
45
stream.timestamp_at_beginning = toc(uint64(0));
46
-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');
47
% re-create the fdt file...
48
delete(fullfile(eeg.filepath, eeg.datfile));
49
fid = fopen(fullfile(eeg.filepath, eeg.datfile),'wb','ieee-le');
0 commit comments