mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added a notify that color transforms have changed
Former-commit-id: 28eb82f4e6f646ffcb6ed1b013a9ec60de53e657
This commit is contained in:
parent
dc4a41c64a
commit
ea1b8315c4
@ -101,6 +101,9 @@ public:
|
|||||||
///
|
///
|
||||||
ColorTransform * getTransform(const std::string& id);
|
ColorTransform * getTransform(const std::string& id);
|
||||||
|
|
||||||
|
/// Tell Hyperion that the transforms have changed and the leds need to be updated
|
||||||
|
void transformsUpdated();
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Clears the given priority channel. This will switch the led-colors to the colors of the next
|
/// Clears the given priority channel. This will switch the led-colors to the colors of the next
|
||||||
/// lower priority channel (or off if no more channels are set)
|
/// lower priority channel (or off if no more channels are set)
|
||||||
|
@ -418,6 +418,11 @@ ColorTransform * Hyperion::getTransform(const std::string& id)
|
|||||||
return _raw2ledTransform->getTransform(id);
|
return _raw2ledTransform->getTransform(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Hyperion::transformsUpdated()
|
||||||
|
{
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
void Hyperion::clear(int priority)
|
void Hyperion::clear(int priority)
|
||||||
{
|
{
|
||||||
if (_muxer.hasPriority(priority))
|
if (_muxer.hasPriority(priority))
|
||||||
|
@ -287,6 +287,9 @@ void JsonClientConnection::handleTransformCommand(const Json::Value &message)
|
|||||||
colorTransform->_rgbBlueTransform .setWhitelevel(values[2u].asDouble());
|
colorTransform->_rgbBlueTransform .setWhitelevel(values[2u].asDouble());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// commit the changes
|
||||||
|
_hyperion->transformsUpdated();
|
||||||
|
|
||||||
sendSuccessReply();
|
sendSuccessReply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user