mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Disable device's readiness before closing
This commit is contained in:
parent
fb574b812f
commit
bd08cabe80
@ -94,6 +94,7 @@ int ProviderFtdi::open()
|
|||||||
|
|
||||||
int ProviderFtdi::close()
|
int ProviderFtdi::close()
|
||||||
{
|
{
|
||||||
|
LedDevice::close();
|
||||||
if (_ftdic != nullptr) {
|
if (_ftdic != nullptr) {
|
||||||
Debug(_log, "Closing FTDI device");
|
Debug(_log, "Closing FTDI device");
|
||||||
// Delay to give time to push color black from writeBlack() into the led,
|
// Delay to give time to push color black from writeBlack() into the led,
|
||||||
@ -104,7 +105,7 @@ int ProviderFtdi::close()
|
|||||||
ftdi_free(_ftdic);
|
ftdi_free(_ftdic);
|
||||||
_ftdic = nullptr;
|
_ftdic = nullptr;
|
||||||
}
|
}
|
||||||
return LedDevice::close();
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProviderFtdi::setInError(const QString &errorMsg, bool isRecoverable)
|
void ProviderFtdi::setInError(const QString &errorMsg, bool isRecoverable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user