Commit 9fcd41a8 authored by Tristan Gingold's avatar Tristan Gingold

wr2rf.c: allow interrupts in vuart command

parent 8dddcb61
......@@ -1120,9 +1120,8 @@ vuart (struct libwr2rf_dev *dev, int argc, char **argv)
new_tios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
| INLCR | IGNCR | ICRNL | IXON);
new_tios.c_oflag &= ~OPOST;
new_tios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
new_tios.c_cflag &= ~(CSIZE | PARENB);
new_tios.c_cflag |= CS8 | ISIG;
new_tios.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN);
new_tios.c_lflag |= ISIG; /* Keep C-c, C-z */
tcflush(0, TCIFLUSH);
tcsetattr(0, TCSANOW, &new_tios);
......@@ -1152,7 +1151,7 @@ vuart (struct libwr2rf_dev *dev, int argc, char **argv)
/* Print all the incoming charactes */
while (1) {
int r;
rx = wr_vuart_rx(dev);
if (rx == -1)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment