Skip to content

Commit 8662971

Browse files
author
Jai Bhagat
authored
Merge pull request #112 from cortex-lab/hwInfo_bug
Bugfix for registering hw info
2 parents 14ef798 + 5bee1e0 commit 8662971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

+srv/expServer.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ function handleMessage(id, data, host)
274274
rig.stimWindow.flip(); % clear the screen after
275275

276276
% save a copy of the hardware in JSON
277-
fid = fopen(dat.expFilePath(expRef, 'hw-info', 'master', 'json'), 'w');
277+
hwInfo = dat.expFilePath(expRef, 'hw-info', 'master', 'json');
278+
fid = fopen(hwInfo, 'w');
278279
fprintf(fid, '%s', obj2json(rig));
279280
fclose(fid);
280281
if ~strcmp(dat.parseExpRef(expRef), 'default')

0 commit comments

Comments
 (0)