This is an automated email from the ASF dual-hosted git repository.
linguini 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 3a156581c examples/rmtchar: fix source file ordering for RMTCHAR
3a156581c is described below
commit 3a156581ca4de611c221f97815e10c842f993913
Author: Filipe Cavalcanti <[email protected]>
AuthorDate: Wed Mar 11 16:07:39 2026 -0300
examples/rmtchar: fix source file ordering for RMTCHAR
rmtchar_main.c is coming after rmtchar_common.c, which causes an
undefined reference error. This change fixes the problem.
Signed-off-by: Filipe Cavalcanti <[email protected]>
---
examples/rmtchar/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/rmtchar/CMakeLists.txt b/examples/rmtchar/CMakeLists.txt
index 0d03174f5..a01ebe080 100644
--- a/examples/rmtchar/CMakeLists.txt
+++ b/examples/rmtchar/CMakeLists.txt
@@ -29,8 +29,8 @@ if(CONFIG_EXAMPLES_RMTCHAR)
MODULE
${CONFIG_EXAMPLES_RMTCHAR}
SRCS
- rmtchar_common.c
rmtchar_main.c)
+ target_sources(apps PRIVATE rmtchar_common.c)
if(CONFIG_EXAMPLES_RMTCHAR_TX)
target_sources(apps PRIVATE rmtchar_transmitter.c)
endif()