mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Leddevice refactoring the next part (#253)
* add general switchOff * refactoring of leddevices regarding ledcount and switchoff * remove obsolete includes
This commit is contained in:
@@ -112,7 +112,7 @@ void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> & ledColors)
|
||||
{
|
||||
// No output delay => immediate write
|
||||
if ( _writeToLedsEnable )
|
||||
_ledDevice->write(ledColors);
|
||||
_ledDevice->setLedValues(ledColors);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -125,7 +125,7 @@ void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> & ledColors)
|
||||
{
|
||||
if ( _outputQueue.size() > _outputDelay || !_writeToLedsEnable )
|
||||
{
|
||||
_ledDevice->write(_outputQueue.front());
|
||||
_ledDevice->setLedValues(_outputQueue.front());
|
||||
_outputQueue.pop_front();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user