Skip to content

Commit a90ddfc

Browse files
tomchynordicjm
authored andcommitted
zephyr: Fix pinreset trigger
The hfwinfo returns bitmask, not single values. Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent e56cecc commit a90ddfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bool io_detect_pin_reset(void)
181181

182182
rc = hwinfo_get_reset_cause(&reset_cause);
183183

184-
if (rc == 0 && reset_cause == RESET_PIN) {
184+
if (rc == 0 && (reset_cause & RESET_PIN)) {
185185
(void)hwinfo_clear_reset_cause();
186186
return true;
187187
}

0 commit comments

Comments
 (0)