fix location and naming of enum

This commit is contained in:
seagull9000 2025-05-20 19:33:21 +12:00
parent f82844f43f
commit 7507f889a5
5 changed files with 24 additions and 23 deletions

View file

@ -59,23 +59,23 @@ void UITask::begin(DisplayDriver* display, NodePrefs* node_prefs, const char* bu
#endif
}
void UITask::soundBuzzer(buzzerEventType bet) {
void UITask::soundBuzzer(UIEventType bet) {
#if defined(PIN_BUZZER)
switch(bet){
case buzzerEventType::contactMessage:
case UIEventType::contactMessage:
// gemini's pick
buzzer.play("MsgRcv3:d=4,o=6,b=200:32e,32g,32b,16c7");
break;
case buzzerEventType::channelMessage:
case buzzerEventType::roomMessage:
case buzzerEventType::newContactMessage:
case buzzerEventType::noBuzzer:
case UIEventType::channelMessage:
case UIEventType::roomMessage:
case UIEventType::newContactMessage:
case UIEventType::none:
default:
break;
}
#endif
Serial.print("DBG: Buzzzzzz -> ");
Serial.println((int) bet);
// Serial.print("DBG: Buzzzzzz -> ");
// Serial.println((int) bet);
}
void UITask::msgRead(int msgcount) {