We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00e1b69 + 6a401c3 commit a100fd8Copy full SHA for a100fd8
samples/tmo_shell/CMakeLists.txt
@@ -124,6 +124,10 @@ else()
124
add_compile_definitions(VERSION_TMO_RTOS_TAG="${TMO_RTOS_TAG}")
125
endif()
126
127
+if(DEFINED ENV{SLOT})
128
+ add_compile_definitions(BOOT_SLOT="$ENV{SLOT}")
129
+endif()
130
+
131
# tmo-sdk: current version tag in tmo-sdk
132
if(DEFINED ENV{TMO_SDK_TAG})
133
add_compile_definitions(VERSION_TMO_SDK_TAG="$ENV{TMO_SDK_TAG}")
samples/tmo_shell/src/tmo_shell.c
@@ -2320,4 +2320,8 @@ void tmo_shell_main (void)
2320
#ifdef CONFIG_WIFI
2321
tmo_wifi_connect();
2322
#endif
2323
2324
+#ifdef BOOT_SLOT
2325
+ printf("BOOT_SLOT: %s\n", BOOT_SLOT);
2326
+#endif
2327
}
0 commit comments