diff --git a/helpers/intan_frontend_main.m b/helpers/intan_frontend_main.m index 3c290d3..41740d6 100644 --- a/helpers/intan_frontend_main.m +++ b/helpers/intan_frontend_main.m @@ -132,6 +132,8 @@ parse_options=''; last_file=clock; +% TODO: option for custom e-mail function (just map to anonymous function) + file_check=5; % how long to wait between file reads to check if file is no longer being written (in seconds) mfile_path = mfilename('fullpath'); @@ -236,6 +238,10 @@ end end +% TODO: use separate flags for file reading and waiting errors +% give option to send e-mail if multiple errors come up +% right now it's too sensitive + if ~isempty(parse_options) if parse_options(end)~=delimiter