mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* 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:
parent
442fab9c59
commit
fcd0fb0c52
@ -12,8 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Colors Smoothing is started in pause mode to save resources, when Hyperion starts with no active source
|
||||||
|
|
||||||
### Fixed
|
### 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)
|
- 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
|
- Standalone grabbers: Improved fps help/error text, fixed default address and port
|
||||||
|
|
||||||
|
@ -124,6 +124,9 @@ void Hyperion::start()
|
|||||||
_deviceSmooth = new LinearColorSmoothing(getSetting(settings::SMOOTHING), this);
|
_deviceSmooth = new LinearColorSmoothing(getSetting(settings::SMOOTHING), this);
|
||||||
connect(this, &Hyperion::settingsChanged, _deviceSmooth, &LinearColorSmoothing::handleSettingsUpdate);
|
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
|
// create the message forwarder only on main instance
|
||||||
if (_instIndex == 0)
|
if (_instIndex == 0)
|
||||||
{
|
{
|
||||||
|
@ -539,11 +539,6 @@ void LinearColorSmoothing::clearQueuedColors()
|
|||||||
|
|
||||||
void LinearColorSmoothing::componentStateChange(hyperion::Components component, bool state)
|
void LinearColorSmoothing::componentStateChange(hyperion::Components component, bool state)
|
||||||
{
|
{
|
||||||
if (component == hyperion::COMP_LEDDEVICE)
|
|
||||||
{
|
|
||||||
clearQueuedColors();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (component == hyperion::COMP_SMOOTHING)
|
if (component == hyperion::COMP_SMOOTHING)
|
||||||
{
|
{
|
||||||
setEnable(state);
|
setEnable(state);
|
||||||
|
Loading…
Reference in New Issue
Block a user