Update port.c
Fix a bug in block structure.
This commit is contained in:
parent
d59ecb1d76
commit
1028b3bade
6
port.c
6
port.c
@ -83,8 +83,10 @@ static int CheckPort(const char *port, void *data)
|
||||
{
|
||||
CheckPortInfo *info = (CheckPortInfo*)data;
|
||||
int rc;
|
||||
if (info->verbose)
|
||||
printf("Trying %s \n", port); fflush(stdout);
|
||||
if (info->verbose) {
|
||||
printf("Trying %s \n", port);
|
||||
fflush(stdout);
|
||||
}
|
||||
if ((rc = OpenPort(info->state, port, info->baud)) != CHECK_PORT_OK)
|
||||
return rc;
|
||||
if (info->actualport) {
|
||||
|
Loading…
Reference in New Issue
Block a user