Commit e2a36125 authored by Carles Cufi's avatar Carles Cufi Committed by Carles Cufí
Browse files

zephyr: Fix assert booleanness

Fix the __ASSERT() statement so it actually checks for success and not
for failure.

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent 8b1ce3a6
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/zephyr/main.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ void main(void)
    if (detect_value == CONFIG_BOOT_SERIAL_DETECT_PIN_VAL) {
        BOOT_LOG_INF("Enter the serial recovery mode");
        rc = boot_console_init();
        __ASSERT(rc, "Error initializing boot console.\n");
        __ASSERT(rc == 0, "Error initializing boot console.\n");
        boot_serial_start(&boot_funcs);
        __ASSERT(0, "Bootloader serial process was terminated unexpectedly.\n");
    }