From 704d6d3631b538b09019162d947c86769f9ccd5c Mon Sep 17 00:00:00 2001 From: leslie Date: Tue, 31 Mar 2009 17:46:57 +0800 Subject: [PATCH] smartcards: fix setserial fix --- smartcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartcard.c b/smartcard.c index 6182ba4..aa4c36b 100644 --- a/smartcard.c +++ b/smartcard.c @@ -785,7 +785,7 @@ bool cSmartCardSlotSerial::DeviceSetMode(int mode, int baud) PRINTF(L_CORE_SERIAL,"%s: get serial failed: %s",devName,strerror(errno)); PRINTF(L_CORE_SERIAL,"%s: custombaud not used, try to continue...",devName); } - if(!custom && ((s.flags&ASYNC_SPD_MASK)==ASYNC_SPD_CUST || s.custom_divisor!=0)) { + else if(!custom && ((s.flags&ASYNC_SPD_MASK)==ASYNC_SPD_CUST || s.custom_divisor!=0)) { s.custom_divisor=0; s.flags &= ~ASYNC_SPD_MASK; if(ioctl(fd,TIOCSSERIAL,&s)<0) { -- 2.39.5