Fixes #1800: suppress center beep for non-existing pots

This commit is contained in:
Damjan Adamic
2014-12-21 16:02:21 +01:00
parent 3043163468
commit dffdd2d6c5
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -495,7 +495,9 @@ void evalInputs(uint8_t mode)
if (tmp==0 || (tmp==1 && (bpanaCenter & mask))) {
anaCenter |= mask;
if ((g_model.beepANACenter & mask) && !(bpanaCenter & mask) && !calibrationState) {
AUDIO_POT_MIDDLE(i);
if (!IS_POT(i) || IS_POT_AVAILABLE(i)) {
AUDIO_POT_MIDDLE(i);
}
}
}
}