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

View File

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