summaryrefslogtreecommitdiff
path: root/examples/device/audio_test/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-28 13:34:47 +0700
committerhathach <[email protected]>2022-06-28 13:34:47 +0700
commit83602ea1234e992dd90d6b3c9b1f0fd8b2bf5a78 (patch)
treee45dfa4187b262508636c64f882e23987b1c3c48 /examples/device/audio_test/src/main.c
parent4057c2d8d96a364329d14d3a4b2c237f388cfdc2 (diff)
parent3ead682af05bee3a275125f3e0384dd9b2882546 (diff)
Merge branch 'master' into rp2040_warning
Diffstat (limited to 'examples/device/audio_test/src/main.c')
-rw-r--r--examples/device/audio_test/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/audio_test/src/main.c b/examples/device/audio_test/src/main.c
index 51f55b772..d0849c7ac 100644
--- a/examples/device/audio_test/src/main.c
+++ b/examples/device/audio_test/src/main.c
@@ -222,7 +222,7 @@ bool tud_audio_set_req_entity_cb(uint8_t rhport, tusb_control_request_t const *
// Request uses format layout 2
TU_VERIFY(p_request->wLength == sizeof(audio_control_cur_2_t));
- volume[channelNum] = ((audio_control_cur_2_t*) pBuff)->bCur;
+ volume[channelNum] = (uint16_t) ((audio_control_cur_2_t*) pBuff)->bCur;
TU_LOG2(" Set Volume: %d dB of channel: %u\r\n", volume[channelNum], channelNum);
return true;