fix state of autoselect (#361)

This commit is contained in:
redPanther 2017-01-09 22:41:44 +01:00 committed by GitHub
parent b1981085d3
commit ef14eb08c9
1 changed files with 5 additions and 0 deletions

View File

@ -691,6 +691,10 @@ void Hyperion::clear(int priority)
if (_muxer.hasPriority(priority))
{
_muxer.clearInput(priority);
if (!_sourceAutoSelectEnabled && _currentSourcePriority == priority )
{
setSourceAutoSelectEnabled(true);
}
// update leds if necessary
if (priority < _muxer.getCurrentPriority())
@ -707,6 +711,7 @@ void Hyperion::clear(int priority)
void Hyperion::clearall()
{
_muxer.clearAll();
setSourceAutoSelectEnabled(true);
// update leds
update();