Ignore:
Timestamp:
06/24/10 22:03:52 (11 years ago)
Author:
rorothetroll
Message:

fix some reset delay before ATR. ISO docs gives timing for reset and when data can be transmited and minimum time is 46.2 ms, so I set the delay to 50ms after reset before we try to read the ATR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/ifd_phoenix.c

    r2560 r2561  
    153153#endif
    154154                IO_Serial_RTS_Clr(reader);
    155 #ifndef OS_CYGWIN32
    156             /*
    157             * Pause for 200ms as this might help with the PL2303.
    158             * Some users reporting that this breaks cygwin, so we exclude this.
    159             */
    160             cs_sleepms(200);
    161 #endif
     155
     156            cs_sleepms(50);
    162157            IO_Serial_Ioctl_Lock(reader, 0);
    163158
     
    284279
    285280    IO_Serial_Ioctl_Lock(reader, 0);
     281   
     282    cs_sleepms(50);
     283
    286284    IO_Serial_Flush(reader);
    287285    return 0;
Note: See TracChangeset for help on using the changeset viewer.