We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314a536 commit b4c1917Copy full SHA for b4c1917
samples/debug/memfault/src/main.c
@@ -12,6 +12,7 @@
12
#include <memfault/ports/zephyr/http.h>
13
#include <memfault/core/data_packetizer.h>
14
#include <memfault/core/trace_event.h>
15
+#include <memfault/panics/coredump.h>
16
#include <dk_buttons_and_leds.h>
17
18
#include <zephyr/logging/log.h>
@@ -92,7 +93,8 @@ static void on_connect(void)
92
93
LOG_INF("Time to connect: %d ms", time_to_lte_connection);
94
#endif /* IS_ENABLED(MEMFAULT_NCS_LTE_METRICS) */
95
- if (IS_ENABLED(CONFIG_MEMFAULT_NCS_POST_COREDUMP_ON_NETWORK_CONNECTED)) {
96
+ if (IS_ENABLED(CONFIG_MEMFAULT_NCS_POST_COREDUMP_ON_NETWORK_CONNECTED) &&
97
+ memfault_coredump_has_valid_coredump(NULL)) {
98
/* Coredump sending handled internally */
99
return;
100
}
0 commit comments