From 3e441f9426d9606360b4786c68d01d43f03a919f Mon Sep 17 00:00:00 2001 From: Filipe Cavalcanti Date: Wed, 11 Mar 2026 16:07:39 -0300 Subject: [PATCH] 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 --- 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 0d03174f554..a01ebe08083 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()