Skip to content

Commit dca032a

Browse files
eren-terziogluxiaoxiang781216
authored andcommitted
examples/i2schar: Make tx/rx count value generic on transmit/recieve operations
1 parent 5330966 commit dca032a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/i2schar/i2schar_receiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pthread_addr_t i2schar_receiver(pthread_addr_t arg)
9999

100100
/* Loop for the requested number of times */
101101

102-
for (i = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
102+
for (i = 0; i < g_i2schar.rxcount; i++)
103103
{
104104
/* Allocate an audio buffer of the configured size */
105105

examples/i2schar/i2schar_transmitter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
102102

103103
/* Loop for the requested number of times */
104104

105-
for (i = 0, crap = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
105+
for (i = 0, crap = 0; i < g_i2schar.txcount; i++)
106106
{
107107
/* Allocate an audio buffer of the configured size */
108108

0 commit comments

Comments
 (0)