Changeset 1647


Ignore:
Timestamp:
02/21/10 20:12:10 (11 years ago)
Author:
landlord
Message:

User said that if the timeout is set to 10 seconds (instead of 5) it allows the smartreader to work on IPBox STB

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1636 r1647  
    272272add_subdirectory (csctapi)
    273273add_subdirectory (cscrypt)
    274 if (HAVE_LIBUSB)
    275 add_subdirectory (utils)
    276 endif (HAVE_LIBUSB)
     274
     275if( HAVE_LIBRT OR HAVE_LIBRT_STATIC)
     276    if (HAVE_LIBUSB)
     277        add_subdirectory (utils)
     278    endif (HAVE_LIBUSB)
     279endif( HAVE_LIBRT OR HAVE_LIBRT_STATIC)
    277280
    278281#----------------------- file groups ------------------------------
  • trunk/csctapi/ifd_smartreader.c

    r1637 r1647  
    315315    pthread_join(reader->rt,NULL);
    316316    libusb_close(reader->sr_config.usb_dev_handle);
     317    libusb_exit(NULL);
    317318    return OK;
    318319
     
    507508    reader->sr_config.usb_dev = NULL;
    508509    reader->sr_config.usb_dev_handle=NULL;
    509     reader->sr_config.usb_read_timeout = 5000;
    510     reader->sr_config.usb_write_timeout = 5000;
     510    reader->sr_config.usb_read_timeout = 10000;
     511    reader->sr_config.usb_write_timeout = 10000;
    511512
    512513    reader->sr_config.type = TYPE_BM;    /* chip type */
Note: See TracChangeset for help on using the changeset viewer.