summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2020-08-29 13:22:21 +0200
committerReinhard Panhuber <[email protected]>2020-08-29 13:22:21 +0200
commitb9c9cfdbac66b38faacdff6b5b2629c332d328a9 (patch)
tree17a0c4debb80bacab94cfa27fe4af41313d087f5 /src/class
parente3840d6bc07e71545c43883803a0220329638613 (diff)
Change min to tu_min16.
Diffstat (limited to 'src/class')
-rw-r--r--src/class/audio/audio_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index cbb13afc9..3be100890 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -425,7 +425,7 @@ static bool audio_tx_done_type_I_pcm_ff_cb(uint8_t rhport, audiod_interface_t* a
}
// Limit to maximum sample number - THIS IS A POSSIBLE ERROR SOURCE IF TOO MANY SAMPLE WOULD NEED TO BE SENT BUT CAN NOT!
- nSamplesPerChannelToSend = min(nSamplesPerChannelToSend, nEndpointSampleCapacity);
+ nSamplesPerChannelToSend = tu_min16(nSamplesPerChannelToSend, nEndpointSampleCapacity);
nBytesToSend = nSamplesPerChannelToSend * CFG_TUD_AUDIO_N_CHANNELS_TX * CFG_TUD_AUDIO_N_BYTES_PER_SAMPLE_TX;
// Encode