Skip to content

Commit 9e16e90

Browse files
authored
Merge pull request hathach#1853 from NullMember/master
examples/uac2: Fix mute and volume array lengths
2 parents 6b4838c + 546dd60 commit 9e16e90

File tree

1 file changed

+2
-2
lines changed
  • examples/device/uac2_headset/src

1 file changed

+2
-2
lines changed

examples/device/uac2_headset/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ static uint32_t blink_interval_ms = BLINK_NOT_MOUNTED;
7979

8080
// Audio controls
8181
// Current states
82-
int8_t mute[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX + 1]; // +1 for master channel 0
83-
int16_t volume[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX + 1]; // +1 for master channel 0
82+
int8_t mute[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX + 1]; // +1 for master channel 0
83+
int16_t volume[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX + 1]; // +1 for master channel 0
8484

8585
// Buffer for microphone data
8686
int32_t mic_buf[CFG_TUD_AUDIO_FUNC_1_EP_IN_SW_BUF_SZ / 4];

0 commit comments

Comments
 (0)