1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 09:45:21 +03:00

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

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);
}
}
}
}