X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=linux_termios.c;h=5343e6e8268f15253aa82fb2f6983b76427591f5;hb=c33efc482e4717af368e22748142f959ac727243;hp=743af6000503fe7c9754c61eb860aa5867728186;hpb=da21834e42bc58065de0871f49fffefa605d4c5b;p=libserialport.git diff --git a/linux_termios.c b/linux_termios.c index 743af60..5343e6e 100644 --- a/linux_termios.c +++ b/linux_termios.c @@ -99,8 +99,8 @@ int get_termiox_size(void) int get_termiox_flow(void *data) { struct termiox *termx = (struct termiox *) data; - int flags = 0; + if (termx->x_cflag & RTSXOFF) flags |= RTS_FLOW; if (termx->x_cflag & CTSXON) @@ -131,4 +131,3 @@ void set_termiox_flow(void *data, int flags) #endif #endif -