Added a notify that color transforms have changed

Former-commit-id: 28eb82f4e6f646ffcb6ed1b013a9ec60de53e657
This commit is contained in:
johan
2013-12-03 22:56:46 +01:00
parent dc4a41c64a
commit ea1b8315c4
3 changed files with 11 additions and 0 deletions

View File

@@ -418,6 +418,11 @@ ColorTransform * Hyperion::getTransform(const std::string& id)
return _raw2ledTransform->getTransform(id);
}
void Hyperion::transformsUpdated()
{
update();
}
void Hyperion::clear(int priority)
{
if (_muxer.hasPriority(priority))

View File

@@ -287,6 +287,9 @@ void JsonClientConnection::handleTransformCommand(const Json::Value &message)
colorTransform->_rgbBlueTransform .setWhitelevel(values[2u].asDouble());
}
// commit the changes
_hyperion->transformsUpdated();
sendSuccessReply();
}