- Timestamp:
- 01/23/12 20:48:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sc8in1/csctapi/ifd_sc8in1.c
r6278 r6291 121 121 } 122 122 123 // Clear RTS which may have been set by tcsetattr 124 IO_Serial_RTS_Clr(reader); 125 tcflush(reader->handle, TCIOFLUSH); 126 123 127 // switch SC8in1 to normal mode 124 128 IO_Serial_DTR_Clr(reader); … … 545 549 546 550 int32_t Sc8in1_SetTermioForSlot(struct s_reader *reader, int32_t slot) { 551 552 // switch SC8in1 to command mode 553 IO_Serial_DTR_Set(reader); 554 547 555 struct termios termio_current, termio_new; 548 556 tcgetattr(reader->handle, &termio_current); … … 568 576 } 569 577 } 578 579 // Clear RTS which may have been set by tcsetattr 580 IO_Serial_RTS_Clr(reader); 581 tcflush(reader->handle, TCIOFLUSH); 582 583 IO_Serial_DTR_Clr(reader); 570 584 571 585 return OK;
Note:
See TracChangeset
for help on using the changeset viewer.