Update port.c

Fix a bug in block structure.
This commit is contained in:
David Betz 2017-07-03 08:23:32 -04:00 committed by GitHub
parent d59ecb1d76
commit 1028b3bade
1 changed files with 4 additions and 2 deletions

6
port.c
View File

@ -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) {