Function esp_idf_svc::hal::sys::bootloader_common_select_otadata

source ยท
pub unsafe extern "C" fn bootloader_common_select_otadata(
    two_otadata: *const esp_ota_select_entry_t,
    valid_two_otadata: *mut bool,
    max: bool,
) -> i32
Expand description

@brief Returns the number of active otadata.

@param[in] two_otadata Pointer on array from two otadata structures. @param[in] valid_two_otadata Pointer on array from two bools. True means select. @param[in] max True - will select the maximum ota_seq number, otherwise the minimum.

@return The number of active otadata (0 or 1). - -1: If it does not have active otadata.