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

6
port.c
View File

@ -83,8 +83,10 @@ static int CheckPort(const char *port, void *data)
{ {
CheckPortInfo *info = (CheckPortInfo*)data; CheckPortInfo *info = (CheckPortInfo*)data;
int rc; int rc;
if (info->verbose) if (info->verbose) {
printf("Trying %s \n", port); fflush(stdout); printf("Trying %s \n", port);
fflush(stdout);
}
if ((rc = OpenPort(info->state, port, info->baud)) != CHECK_PORT_OK) if ((rc = OpenPort(info->state, port, info->baud)) != CHECK_PORT_OK)
return rc; return rc;
if (info->actualport) { if (info->actualport) {