Commit a90ddfc7 authored by Tomasz Chyrowicz's avatar Tomasz Chyrowicz Committed by Jamie
Browse files

zephyr: Fix pinreset trigger



The hfwinfo returns bitmask, not single values.

Signed-off-by: default avatarTomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
parent e56cecc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ bool io_detect_pin_reset(void)

    rc = hwinfo_get_reset_cause(&reset_cause);

    if (rc == 0 && reset_cause == RESET_PIN) {
    if (rc == 0 && (reset_cause & RESET_PIN)) {
        (void)hwinfo_clear_reset_cause();
        return true;
    }