mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/i2schar: Make tx/rx count value generic on transmit/recieve operations
This commit is contained in:
parent
5330966762
commit
dca032ab18
2 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue