mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
serial_test: fix build for linux
This commit is contained in:
parent
e409ec0038
commit
d0ad308eda
3
src/systemcmds/serial_test/.gitignore
vendored
Normal file
3
src/systemcmds/serial_test/.gitignore
vendored
Normal file
@ -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…
x
Reference in New Issue
Block a user