forked from Archive/PX4-Autopilot
serial_test: fix build for linux
This commit is contained in:
parent
e409ec0038
commit
d0ad308eda
|
@ -0,0 +1,3 @@
|
|||
|
||||
/serial_test
|
||||
|
|
@ -516,7 +516,7 @@ static void dump_serial_port_stats(void)
|
|||
#if !defined(__PX4_NUTTX)
|
||||
struct serial_icounter_struct icount = { 0 };
|
||||
|
||||
int ret = ioctl(_fd, TIOCGICOUNT, &icount);
|
||||
int ret = ioctl(g_mod._fd, TIOCGICOUNT, &icount);
|
||||
|
||||
if (ret != -1) {
|
||||
printf("%s: TIOCGICOUNT: ret=%i, rx=%i, tx=%i, frame = %i, overrun = %i, parity = %i, brk = %i, buf_overrun = %i\n",
|
||||
|
|
Loading…
Reference in New Issue