This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new dca032ab1 examples/i2schar: Make tx/rx count value generic on 
transmit/recieve operations
dca032ab1 is described below

commit dca032ab18f29804399027a9e66e0092510d1b83
Author: Eren Terzioglu <eren.terzio...@espressif.com>
AuthorDate: Fri Jan 17 11:08:38 2025 +0100

    examples/i2schar: Make tx/rx count value generic on transmit/recieve 
operations
---
 examples/i2schar/i2schar_receiver.c    | 2 +-
 examples/i2schar/i2schar_transmitter.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/i2schar/i2schar_receiver.c 
b/examples/i2schar/i2schar_receiver.c
index 164635779..843381ccc 100644
--- a/examples/i2schar/i2schar_receiver.c
+++ b/examples/i2schar/i2schar_receiver.c
@@ -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 */
 
diff --git a/examples/i2schar/i2schar_transmitter.c 
b/examples/i2schar/i2schar_transmitter.c
index aa5c59db9..2fb9ded0f 100644
--- a/examples/i2schar/i2schar_transmitter.c
+++ b/examples/i2schar/i2schar_transmitter.c
@@ -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 */
 

Reply via email to