examples/i2schar: Make tx/rx count value generic on transmit/recieve operations

This commit is contained in:
Eren Terzioglu
2025-01-17 11:08:38 +01:00
committed by Xiang Xiao
parent 5330966762
commit dca032ab18
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ pthread_addr_t i2schar_receiver(pthread_addr_t arg)
/* Loop for the requested number of times */
for (i = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
for (i = 0; i < g_i2schar.rxcount; i++)
{
/* Allocate an audio buffer of the configured size */

View File

@@ -102,7 +102,7 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
/* Loop for the requested number of times */
for (i = 0, crap = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
for (i = 0, crap = 0; i < g_i2schar.txcount; i++)
{
/* Allocate an audio buffer of the configured size */