bootloader_common_read_otadata() function
Read ota_info partition and fill array from two otadata structures.
Arguments
ota_info
It is a pointer to the OTA data partition. The "otadata" partition (Type = "data" and SubType = "ota") is defined in the CSV partition table.
two_otadata
Pointer to array of OTA selection structure.
Return value
- ESP_OK: On success - ESP_ERR_NOT_FOUND: Partition table does not have otadata partition - ESP_FAIL: On failure