* Fix #967

* Start Smoothing in pause mode to avoid resource usage, if hyperion is started without active priority

* Update Changelog
This commit is contained in:
LordGrey 2021-12-14 07:55:34 +01:00 committed by GitHub
parent 442fab9c59
commit fcd0fb0c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -12,8 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Colors Smoothing is started in pause mode to save resources, when Hyperion starts with no active source
### Fixed
- Fixes that the Led-Device output flow was interrupted, by an enabling API request on an already enabled device (#967
- Yeelight - Workaround: Ignore error when setting music mode = off, but the music-mode is already off (#1372)
- Standalone grabbers: Improved fps help/error text, fixed default address and port

View File

@ -124,6 +124,9 @@ void Hyperion::start()
_deviceSmooth = new LinearColorSmoothing(getSetting(settings::SMOOTHING), this);
connect(this, &Hyperion::settingsChanged, _deviceSmooth, &LinearColorSmoothing::handleSettingsUpdate);
//Start in pause mode, a new priority will activate smoothing (either start-effect or grabber)
_deviceSmooth->setPause(true);
// create the message forwarder only on main instance
if (_instIndex == 0)
{

View File

@ -539,11 +539,6 @@ void LinearColorSmoothing::clearQueuedColors()
void LinearColorSmoothing::componentStateChange(hyperion::Components component, bool state)
{
if (component == hyperion::COMP_LEDDEVICE)
{
clearQueuedColors();
}
if (component == hyperion::COMP_SMOOTHING)
{
setEnable(state);