Tympan / Tympan_Library

Arduino/Teensy Library for Tympan Open Source Hearing Aid
MIT License
116 stars 31 forks source link

App: addCard_audioSource not displaying #58

Closed eyuan-creare closed 2 years ago

eyuan-creare commented 2 years ago

In TrebleBoost_wComp_wEarpieces_wApp, the first page does not show options for selecting audio source.

Here is the code as of b173ad9c67148aca65d93873728ac156479422ee

TR_Card* EarpieceMixer_F32_UI::addCard_audioSource(TR_Page *page_h) {
  if (page_h == NULL) return NULL;
  TR_Card *card_h = page_h->addCard("Audio Source");
  if (card_h == NULL) return NULL;
  String prefix = String(quadchar_start_char)+String(ID_char)+String("x");
  card_h->addButton(F("Digital Earpieces"),       prefix+"d", F("configPDMMic"),   12); //label, command, id, width
  card_h->addButton(F("Analog: PCB Mics"),        prefix+"w", F("configPCBMic"),   12); //label, command, id, width
  card_h->addButton(F("Analog: Mic Jack (Mic)"),  prefix+"W", F("configMicJack"),  12); //label, command, id, width
  card_h->addButton(F("Analog: Mic Jack (Line)"), prefix+"e", F("configLineJack"), 12); //label, command, id, width
  card_h->addButton(F("Analog: BT Audio"),        prefix+"E", F("configLineSE"),   12); //label, command, id, width
  return card_h;
}

Screenshot_20210922-230841_Tympan Remote

chipaudette commented 2 years ago

Using release_candidate1, I was not able to recreate this problem. I successfully get the menu that you were missing.

screen

hgeithner-creare commented 2 years ago

I tried this example on main and successfully got the menu.

eyuan-creare commented 2 years ago

Closing this. I believe the recent changes fixed this. Thanks!