Changeset 1637


Ignore:
Timestamp:
02/21/10 08:13:51 (11 years ago)
Author:
landlord
Message:

change a value for the interface index used in libusb_control_transfer to force it to INTERFACE_A , this might help with older kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/ifd_smartreader.c

    r1598 r1637  
    185185        EnableSmartReader(reader, reader->sr_config.fs/10000, reader->sr_config.F, (BYTE)reader->sr_config.D, reader->sr_config.N, reader->sr_config.T, reader->sr_config.inv,reader->sr_config.parity);
    186186        sched_yield();
     187        cs_sleepms(500); //smartreader in mouse mode needs this, so it might also be needed in native mode.
    187188       
    188189        //Reset smartcard
     
    516517    reader->sr_config.max_packet_size = 0;
    517518
    518     reader->sr_config.interface = 0;
    519     reader->sr_config.index = 0;
     519    reader->sr_config.interface = INTERFACE_ANY;
     520    reader->sr_config.index = INTERFACE_A;
    520521    reader->sr_config.in_ep = 0x02;
    521522    reader->sr_config.out_ep = 0x82;
Note: See TracChangeset for help on using the changeset viewer.