Skip to content

Commit

Permalink
Better group handling in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
espzav committed Mar 6, 2023
1 parent 7b76150 commit f9fb433
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/display_audio_photo/main/app_disp_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static void play_file(void *arg)
esp_codec_dev_sample_info_t fs = {
.sample_rate = SAMPLE_RATE,
.channel = 1,
.bits_per_sample = ES8311_RESOLUTION_16,
.bits_per_sample = 16,
};
esp_codec_dev_open(spk_codec_dev, &fs);

Expand Down Expand Up @@ -797,7 +797,7 @@ static void rec_file(void *arg)
esp_codec_dev_sample_info_t fs = {
.sample_rate = SAMPLE_RATE / 2,
.channel = 1,
.bits_per_sample = ES8311_RESOLUTION_16,
.bits_per_sample = 16,
};
esp_codec_dev_open(mic_codec_dev, &fs);

Expand Down Expand Up @@ -948,9 +948,11 @@ static void set_tab_group(void)
lv_indev_t *indev = bsp_display_get_input_dev();
if (indev && filesystem_group && recording_group && settings_group) {
uint16_t tab = lv_tabview_get_tab_act(tabview);
lv_group_set_editing(filesystem_group, false);
lv_group_set_editing(recording_group, false);
lv_group_set_editing(settings_group, false);
switch (tab) {
case 0:

lv_indev_set_group(indev, filesystem_group);
break;
case 1:
Expand Down

0 comments on commit f9fb433

Please sign in to comment.