summaryrefslogtreecommitdiff
path: root/examples/device/uac2_headset/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2023-02-16 11:22:52 +0100
committerGitHub <[email protected]>2023-02-16 11:22:52 +0100
commit9e16e904edfb9b1fcff9706e4372be80cc20d5bf (patch)
tree163746a57e91a0bcb89a67a765d98b8866cb9a80 /examples/device/uac2_headset/src
parent6b4838cb2f451441d63291774a8958090c3aa00d (diff)
parent546dd6038c57e1a1db2a6711e64bddd869f5667a (diff)
Merge pull request #1853 from NullMember/master
examples/uac2: Fix mute and volume array lengths
Diffstat (limited to 'examples/device/uac2_headset/src')
-rw-r--r--examples/device/uac2_headset/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/uac2_headset/src/main.c b/examples/device/uac2_headset/src/main.c
index 003dc2a74..01707d51b 100644
--- a/examples/device/uac2_headset/src/main.c
+++ b/examples/device/uac2_headset/src/main.c
@@ -79,8 +79,8 @@ static uint32_t blink_interval_ms = BLINK_NOT_MOUNTED;
// Audio controls
// Current states
-int8_t mute[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX + 1]; // +1 for master channel 0
-int16_t volume[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX + 1]; // +1 for master channel 0
+int8_t mute[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX + 1]; // +1 for master channel 0
+int16_t volume[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX + 1]; // +1 for master channel 0
// Buffer for microphone data
int32_t mic_buf[CFG_TUD_AUDIO_FUNC_1_EP_IN_SW_BUF_SZ / 4];