Changeset 7890
- Timestamp:
- 11/10/12 10:11:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r7882 r7890 314 314 bool IO_Serial_SetProperties (struct s_reader * reader, struct termios newtio) 315 315 { 316 317 316 if(reader->typ == R_INTERNAL) 317 return OK; 318 318 319 319 if (tcsetattr (reader->handle, TCSANOW, &newtio) < 0) // set terminal attributes. 320 320 return ERROR; 321 322 int32_t mctl; 323 rdr_debug_mask(reader, D_DEVICE, "Getting readerstatus..."); 324 if (ioctl (reader->handle, TIOCMGET, &mctl) >= 0) { // get reader statusbits 325 mctl &= ~TIOCM_RTS; 326 rdr_debug_mask(reader, D_DEVICE, "Set reader ready to Send"); 327 ioctl (reader->handle, TIOCMSET, &mctl); // set reader ready to send. 328 } 329 else rdr_log(reader, "WARNING: Cant get readerstatus!"); 321 330 322 return OK; 331 323 }
Note:
See TracChangeset
for help on using the changeset viewer.