diff --git a/simulators/simeasycomm.c b/simulators/simeasycomm.c index a774e5fcc..da5647650 100644 --- a/simulators/simeasycomm.c +++ b/simulators/simeasycomm.c @@ -111,7 +111,6 @@ static void *rotorez_thread(void *arg) int fd = *(int *)arg; float az = 123; float el = 45; -again: while (1) { @@ -120,10 +119,8 @@ again: if (bytes == 0) { - //close(fd); hl_usleep(100 * 1000); - //printf("again\n"); - goto again; + continue; } printf("line[%d]=%s\n", fd, buf); diff --git a/simulators/simrotorez.c b/simulators/simrotorez.c index 48b0042ba..7b4ba21d5 100644 --- a/simulators/simrotorez.c +++ b/simulators/simrotorez.c @@ -111,7 +111,6 @@ static void *rotorez_thread(void *arg) int fd = *(int *)arg; float az = 123; float el = 45; -again: while (1) { @@ -120,10 +119,8 @@ again: if (bytes == 0) { - //close(fd); hl_usleep(100 * 1000); - //printf("again\n"); - goto again; + continue; } printf("line[%d]=%s\n", fd, buf);