Skip to content

Commit 310c3ed

Browse files
committed
Bugfix for wrong serial port number.
1 parent 031521b commit 310c3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ int dev_fopen(int sb_handle, const char *name, int flags) {
183183
}
184184
if (strncmp(f->name, "COM", 3) == 0) {
185185
f->type = ft_serial_port;
186-
f->port = f->name[3] - '1';
186+
f->port = f->name[3] - '0';
187187
if (f->port < 0) {
188188
f->port = 10;
189189
}

0 commit comments

Comments
 (0)