mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Remove close delay
This commit is contained in:
parent
040b45d7ea
commit
af65f6f128
@ -4,7 +4,6 @@
|
||||
|
||||
#include <ftdi.h>
|
||||
#include <libusb.h>
|
||||
#include <thread>
|
||||
|
||||
#define ANY_FTDI_VENDOR 0x0
|
||||
#define ANY_FTDI_PRODUCT 0x0
|
||||
@ -110,10 +109,8 @@ int ProviderFtdi::open()
|
||||
|
||||
int ProviderFtdi::close()
|
||||
{
|
||||
// allow to clock out remaining data from powerOff()->writeBlack()
|
||||
if (_ftdic != NULL)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(15));
|
||||
Debug(_log, "Closing FTDI device");
|
||||
ftdi_set_bitmode(_ftdic, 0x00, BITMODE_RESET);
|
||||
ftdi_usb_close(_ftdic);
|
||||
|
Loading…
x
Reference in New Issue
Block a user