mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
serial_test: fix build for linux
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
/serial_test
|
||||||
|
|
||||||
@@ -516,7 +516,7 @@ static void dump_serial_port_stats(void)
|
|||||||
#if !defined(__PX4_NUTTX)
|
#if !defined(__PX4_NUTTX)
|
||||||
struct serial_icounter_struct icount = { 0 };
|
struct serial_icounter_struct icount = { 0 };
|
||||||
|
|
||||||
int ret = ioctl(_fd, TIOCGICOUNT, &icount);
|
int ret = ioctl(g_mod._fd, TIOCGICOUNT, &icount);
|
||||||
|
|
||||||
if (ret != -1) {
|
if (ret != -1) {
|
||||||
printf("%s: TIOCGICOUNT: ret=%i, rx=%i, tx=%i, frame = %i, overrun = %i, parity = %i, brk = %i, buf_overrun = %i\n",
|
printf("%s: TIOCGICOUNT: ret=%i, rx=%i, tx=%i, frame = %i, overrun = %i, parity = %i, brk = %i, buf_overrun = %i\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user