Skip to content

Commit

Permalink
examples/i2schar: Make tx/rx count value generic on transmit/recieve …
Browse files Browse the repository at this point in the history
…operations
  • Loading branch information
eren-terzioglu authored and xiaoxiang781216 committed Jan 21, 2025
1 parent 5330966 commit dca032a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/i2schar/i2schar_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
2 changes: 1 addition & 1 deletion examples/i2schar/i2schar_transmitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit dca032a

Please sign in to comment.