Skip to content

Commit c086507

Browse files
authored
Merge pull request #43 from austin2118ace/emu_fix
Remove the SerialPort field when the serial port fails to connect
2 parents 84c2da8 + 11f0d0b commit c086507

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Functions/@BpodObject/Connect2BpodSM.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@
107107
if found
108108
obj.EmulatorMode = 0;
109109
else
110+
obj.SerialPort = [];
111+
% If no serial port is found, drop the field
112+
110113
if sum(portsTried) > 0
111114
autoModeMessage = [];
112115
if autoMode

0 commit comments

Comments
 (0)