Changeset 7890


Ignore:
Timestamp:
11/10/12 10:11:49 (10 years ago)
Author:
lattjo
Message:

csctapi: Just because reader parameters are change we should not release card reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/io_serial.c

    r7882 r7890  
    314314bool IO_Serial_SetProperties (struct s_reader * reader, struct termios newtio)
    315315{
    316    if(reader->typ == R_INTERNAL)
    317       return OK;
     316    if(reader->typ == R_INTERNAL)
     317        return OK;
    318318
    319319    if (tcsetattr (reader->handle, TCSANOW, &newtio) < 0)  // set terminal attributes.
    320320        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
    330322    return OK;
    331323}
Note: See TracChangeset for help on using the changeset viewer.