This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU enter check

In SDK 15 the bootloader DFU enter check in nrf_bootloader.c has the following code:

    if (NRF_BL_DFU_ENTER_METHOD_GPREGRET &&
       (nrf_power_gpregret_get() & BOOTLOADER_DFU_START))
    {
        NRF_LOG_DEBUG("DFU mode requested via GPREGRET.");
        return true;
    }

Why isn't this (NRF_BL_DFU_ENTER_METHOD_GPREGRET && (nrf_power_gpregret_get() & BOOTLOADER_DFU_START) == BOOTLOADER_DFU_START) ?

Parents Reply Children
No Data
Related