Skip to content

Commit

Permalink
assert_zephyr: fix incorrect assert
Browse files Browse the repository at this point in the history
The 'condition' was incorrectly assumed to be the same value as passed
into PW_ASSERT. This caused PW_ASSERT to never actually fail.

Change-Id: Ia1df29b3312704be6efb16ba1a2bddb3e9da367e
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109474
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
  • Loading branch information
yperess authored and CQ Bot Account committed Sep 8, 2022
1 parent 5c0a760 commit 1216709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pw_assert_zephyr/public/pw_assert_zephyr/assert_zephyr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

#include <zephyr/sys/__assert.h>

#define PW_ASSERT_HANDLE_FAILURE(condition) __ASSERT_NO_MSG(condition);
#define PW_ASSERT_HANDLE_FAILURE(condition) __ASSERT(false, condition);

0 comments on commit 1216709

Please sign in to comment.