Changeset 696
- Timestamp:
- 12/05/09 01:03:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/csctapi/io_serial.c
r695 r696 980 980 int fs; 981 981 struct timespec req_ts; 982 982 int i; 983 983 984 req_ts.tv_sec = 0; 984 985 req_ts.tv_nsec = 50000000; … … 1068 1069 term.c_cflag&=~CSIZE; 1069 1070 term.c_cflag|=CS8; 1070 if(tcsetattr(io->fd,TCSADRAIN,&term)==-1) 1071 { 1072 # ifdef DEBUG_IO 1073 printf("%s: tcsetattr failed: %s\n",io->filename,strerror(errno)); 1074 #endif 1075 return FALSE; 1076 } 1071 for (i=0; i<3; i++) 1072 if(tcsetattr(io->fd,TCSADRAIN,&term)==-1) 1073 { 1074 # ifdef DEBUG_IO 1075 printf("%s: tcsetattr failed: %s\n",io->filename,strerror(errno)); 1076 #endif 1077 return FALSE; 1078 } 1079 1077 1080 #ifdef DEBUG_IO 1078 1081 printf("IO: Setting SmartReader+ config done, Reseting the card\n"); … … 1089 1092 IO_Serial_RTS_Clr(io); 1090 1093 IO_Serial_Ioctl_Lock(io, 0); 1091 1092 // IO_Serial_DTR_RTS(io, 0, io->rts == IO_SERIAL_HIGH);1093 1094 return TRUE; 1094 1095 }
Note:
See TracChangeset
for help on using the changeset viewer.