Skip to content

Commit

Permalink
Memfault Firmware SDK 0.32.2 (Build 494632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Memfault Inc committed Aug 16, 2022
1 parent 7eafab4 commit 36a6345
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Changes between Memfault SDK 0.32.2 and SDK 0.32.1 - Aug 16, 2022

#### :chart_with_upwards_trend: Improvements

- Zephyr port: added a fix for upcoming Zephyr 3.2 compatibility, thanks
@nordicjm for the fix!

### Changes between Memfault SDK 0.32.1 and SDK 0.32.0 - Aug 8, 2022

#### :house: Internal
Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BUILD ID: 490385
GIT COMMIT: aeb8e3734
BUILD ID: 494632
GIT COMMIT: b2b683510
2 changes: 1 addition & 1 deletion components/include/memfault/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef struct {
uint8_t patch;
} sMfltSdkVersion;

#define MEMFAULT_SDK_VERSION { .major = 0, .minor = 32, .patch = 1 }
#define MEMFAULT_SDK_VERSION { .major = 0, .minor = 32, .patch = 2 }

#ifdef __cplusplus
}
Expand Down
9 changes: 8 additions & 1 deletion ports/zephyr/common/memfault_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,16 @@ static void prv_log_panic(struct log_backend const *const backend);
// -Wincompatible-pointer-types between versions
static void prv_log_init();


// LOG2 was added in Zephyr 2.6:
// https://github.com/zephyrproject-rtos/zephyr/commit/f1bb20f6b43b8b241e45f3f132f0e7bbfc65401b
#if MEMFAULT_ZEPHYR_VERSION_GT(2, 5)
// LOG2 was moved to LOG in Zephyr 3.2
// https://github.com/zephyrproject-rtos/zephyr/issues/46500
#if MEMFAULT_ZEPHYR_VERSION_GT(3, 1)
static void prv_log_process(const struct log_backend *const backend, union log_msg_generic *msg) {
log_output_msg_process(&s_log_output_mflt, &msg->log, g_flags);
}
#elif MEMFAULT_ZEPHYR_VERSION_GT(2, 5)
// Additional processing for log2 output
static void prv_log_process(const struct log_backend *const backend, union log_msg2_generic *msg) {
log_output_msg2_process(&s_log_output_mflt, &msg->log, g_flags);
Expand Down

0 comments on commit 36a6345

Please sign in to comment.