fix: eliminate duplicate beeps across all menu selections and touches
This commit is contained in:
parent
cc33986acc
commit
a5aa2fbc32
2 changed files with 0 additions and 6 deletions
|
|
@ -58,7 +58,6 @@ const float pidWarnMax[4] = { 125.0f, 6000.0f, 16.0f, 160.0f };
|
|||
// Sub-screen 0: Ajuste de Alarmas (Umbrales y Activacion ON/OFF)
|
||||
// -------------------------------------------------------------
|
||||
void warningMenu() {
|
||||
clickSound();
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
tft.fillRectVGradient(0, 0, 320, 26, TFT_ORANGE, 0xfc00);
|
||||
tft.setTextColor(TFT_BLACK);
|
||||
|
|
@ -166,7 +165,6 @@ void warningMenu() {
|
|||
}
|
||||
// Top bar touch -> SAVE & EXIT
|
||||
else if (ty < 30) {
|
||||
clickSound();
|
||||
break;
|
||||
}
|
||||
} else if (digitalRead(SELECTOR_PIN) == LOW) {
|
||||
|
|
@ -196,7 +194,6 @@ void warningMenu() {
|
|||
// Sub-screen 1: Volumen de Bip (Ajuste Tactil Directo)
|
||||
// -------------------------------------------------------------
|
||||
void volumeMenu() {
|
||||
clickSound();
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
tft.fillRectVGradient(0, 0, 320, 26, TFT_ORANGE, 0xfc00);
|
||||
tft.setTextColor(TFT_BLACK);
|
||||
|
|
@ -306,7 +303,6 @@ void configMenu() {
|
|||
uint8_t select = 0;
|
||||
bool pressed = false;
|
||||
long holdtimer = 0;
|
||||
beep();
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
tft.fillRectVGradient(0, 0, 320, 26, TFT_ORANGE, 0xfc00);
|
||||
tft.setTextColor(TFT_BLACK);
|
||||
|
|
@ -381,7 +377,6 @@ void configMenu() {
|
|||
}
|
||||
// Option 2: Exit
|
||||
else if (select == 2) {
|
||||
clickSound();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -404,7 +404,6 @@ void loop() {
|
|||
if ((millis() - firstClickTime < 400) && (quad == clickQuadrant || fullScreenCell != -1)) {
|
||||
// DOUBLE CLICK DETECTED!
|
||||
clickCount = 0;
|
||||
casioBeep(4096, 20); // High confirmation beep on double tap
|
||||
|
||||
if (fullScreenCell == -1) {
|
||||
fullScreenCell = quad;
|
||||
|
|
|
|||
Loading…
Reference in a new issue