Ignore:
Timestamp:
01/15/10 11:28:21 (12 years ago)
Author:
dingo35
Message:

Cleanup reader_type code in csctapi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/ifd_towitoko.c

    r1234 r1235  
    164164   
    165165#ifdef DEBUG_IFD
    166     printf ("IFD: Initializing slot number %d, com=%d\n", slot, io->reader_type);
     166    printf ("IFD: Initializing slot number %d, com=%d\n", slot, reader[ridx].typ);
    167167#endif
    168168   
     
    171171        return IFD_TOWITOKO_PARAM_ERROR;
    172172       
    173     if(io->reader_type==R_INTERNAL)
     173    if(reader[ridx].typ == R_INTERNAL)
    174174    {
    175175        ifd->io = io;
     
    256256int IFD_Towitoko_SetBaudrate (IFD * ifd, unsigned long baudrate)
    257257{
    258     if(ifd->io->reader_type==R_INTERNAL)
     258    if(reader[ridx].typ == R_INTERNAL)
    259259    {
    260260        return IFD_TOWITOKO_OK;
     
    283283int IFD_Towitoko_GetBaudrate (IFD * ifd, unsigned long *baudrate)
    284284{
    285     if(ifd->io->reader_type==R_INTERNAL)
     285    if(reader[ridx].typ == R_INTERNAL)
    286286    {
    287287        return IFD_TOWITOKO_OK;
     
    299299extern int IFD_Towitoko_SetParity (IFD * ifd, BYTE parity)
    300300{
    301     if(ifd->io->reader_type==R_INTERNAL)
     301    if(reader[ridx].typ == R_INTERNAL)
    302302    {
    303303        return IFD_TOWITOKO_OK;
     
    334334#endif
    335335#ifdef SCI_DEV
    336     if(ifd->io->reader_type==R_INTERNAL)
     336    if(reader[ridx].typ == R_INTERNAL)
    337337    {
    338338        int in;
     
    372372
    373373#ifdef SCI_DEV
    374     if(ifd->io->reader_type==R_INTERNAL)
     374    if(reader[ridx].typ == R_INTERNAL)
    375375    {
    376376        int in;
Note: See TracChangeset for help on using the changeset viewer.