APA102 protocol fix (#1352) (#1361)

* Fix APA102 protocoll

* Minor clean-ups

* Revert updates
This commit is contained in:
LordGrey
2021-10-28 18:54:54 +01:00
committed by GitHub
parent ba32b875ab
commit 954112a88e
7 changed files with 65 additions and 28 deletions

View File

@@ -37,6 +37,7 @@ ProviderSpi::ProviderSpi(const QJsonObject &deviceConfig)
{
memset(&_spi, 0, sizeof(_spi));
_latchTime_ms = 1;
_isInSwitchOff = false;
}
ProviderSpi::~ProviderSpi()
@@ -68,6 +69,7 @@ int ProviderSpi::open()
int retval = -1;
QString errortext;
_isDeviceReady = false;
_isInSwitchOff = false;
const int bitsPerWord = 8;