Prevent multipos switch to be returned as a source

This commit is contained in:
3djc
2021-01-19 08:24:02 +01:00
parent 6eb1ade135
commit 233d1d2630
2 changed files with 2 additions and 1 deletions
@@ -137,7 +137,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, unsigned int i_fla
#if defined(AUTOSWITCH)
else {
unsigned int swtch = abs(getMovedSwitch());
if (swtch) {
if (swtch && !IS_SWITCH_MULTPOS(swtch)) {
newval = switchToMix(swtch);
}
}