Skip to content

Commit b6f1858

Browse files
jtguggedalbjarki-andreasen
authored andcommitted
modules: memfault: Check project key only when used to upload
In cases where an upstream device uploads data to Memfault on behalf of a downstream device, the project key is not required. This change allows the project key to be optional in those cases. For the NCS Memfault sources, this is when we are not using MDS or the Memfault Zephyr HTTP client. Signed-off-by: Jan Tore Guggedal <[email protected]>
1 parent fe0c95e commit b6f1858

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/memfault-firmware-sdk/memfault_integration.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ LOG_MODULE_REGISTER(memfault_ncs, CONFIG_MEMFAULT_NCS_LOG_LEVEL);
3535
#define MEMFAULT_URL "https://goto.memfault.com/create-key/nrf"
3636
#endif
3737

38+
#if defined(CONFIG_BT_MDS) || defined(CONFIG_MEMFAULT_HTTP_ENABLE)
3839
/* Project key check */
3940
BUILD_ASSERT(sizeof(CONFIG_MEMFAULT_NCS_PROJECT_KEY) > 1,
4041
"Memfault Project Key not configured. Please visit " MEMFAULT_URL " ");
42+
#endif
4143

4244
/* Firmware type check */
4345
BUILD_ASSERT(sizeof(CONFIG_MEMFAULT_NCS_FW_TYPE) > 1, "Firmware type must be configured");

0 commit comments

Comments
 (0)