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;
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user