serial_test: fix build for linux

This commit is contained in:
Beat Küng
2020-05-19 10:35:01 +02:00
parent e409ec0038
commit d0ad308eda
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
/serial_test
+1 -1
View File
@@ -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",