summaryrefslogtreecommitdiff
path: root/miscutils/setserial.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/setserial.c')
-rw-r--r--miscutils/setserial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/setserial.c b/miscutils/setserial.c
index 501beaa..2951b98 100644
--- a/miscutils/setserial.c
+++ b/miscutils/setserial.c
@@ -687,7 +687,7 @@ static void serial_set(char **arg, int opts)
case CMD_SPD_SHI:
case CMD_SPD_WARP:
case CMD_SPD_CUST:
- serinfo.flags &= ASYNC_SPD_MASK;
+ serinfo.flags &= ~ASYNC_SPD_MASK;
/* fallthrough */
case CMD_FLAG_SAK:
case CMD_FLAG_FOURPORT: