mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Do not reset mpsee engine on close
This commit is contained in:
parent
916b3f3ba7
commit
20409c1cc1
@ -1,7 +1,6 @@
|
|||||||
// LedDevice includes
|
// LedDevice includes
|
||||||
#include <leddevice/LedDevice.h>
|
#include <leddevice/LedDevice.h>
|
||||||
#include "ProviderFtdi.h"
|
#include "ProviderFtdi.h"
|
||||||
#include <utils/WaitTime.h>
|
|
||||||
|
|
||||||
#include <ftdi.h>
|
#include <ftdi.h>
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
@ -110,14 +109,9 @@ int ProviderFtdi::open()
|
|||||||
|
|
||||||
int ProviderFtdi::close()
|
int ProviderFtdi::close()
|
||||||
{
|
{
|
||||||
if (_ftdic != nullptr)
|
Debug(_log, "Closing FTDI device");
|
||||||
{
|
ftdi_usb_close(_ftdic);
|
||||||
Debug(_log, "Closing FTDI device");
|
_ftdic = nullptr;
|
||||||
wait(15); // Delay to give time to push color black from writeBlack() into the led
|
|
||||||
ftdi_set_bitmode(_ftdic, 0x00, BITMODE_RESET);
|
|
||||||
ftdi_usb_close(_ftdic);
|
|
||||||
_ftdic = nullptr;
|
|
||||||
}
|
|
||||||
return LedDevice::close();
|
return LedDevice::close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user