Fix #1007 - LED's retain last state after clearing a source (#1008)

* Save BLACK as lastLedColor during writeBlack

* Remove debug statement overhead

* Re-Add typecasting to ensure readable output

* Revert "New language support: Russian and Chinese (simplified)"

This reverts commit 5c95fab894.

* Ignore TemporaryError
This commit is contained in:
LordGrey
2020-09-25 20:33:11 +02:00
committed by GitHub
parent 730b5d5681
commit 5d5b24979d
7 changed files with 22 additions and 496 deletions

View File

@@ -246,7 +246,8 @@ int LedDevice::writeBlack(int numberOfBlack)
QTimer::singleShot(_latchTime_ms, &loop, &QEventLoop::quit);
loop.exec();
}
rc = write(std::vector<ColorRgb>(static_cast<unsigned long>(_ledCount), ColorRgb::BLACK ));
_lastLedValues = std::vector<ColorRgb>(static_cast<unsigned long>(_ledCount), ColorRgb::BLACK );
rc = write(_lastLedValues);
}
return rc;
}