mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 15:32:21 +08:00
examples/i2schar: Make tx/rx count value generic on transmit/recieve operations
This commit is contained in:

committed by
Xiang Xiao

parent
5330966762
commit
dca032ab18
@@ -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 */
|
||||
|
||||
|
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user