1 /* 2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. 7 * The source file used normally for ESP-IDF has the same name but is located elsewhere. 8 */ 9 #include "esp_ota_ops.h" 10 #include "esp_partition.h" 11 esp_ota_get_running_partition(void)12const esp_partition_t* esp_ota_get_running_partition(void) 13 { 14 // Return first instance of an app partition 15 const esp_partition_t* partition = esp_partition_find_first(ESP_PARTITION_TYPE_APP, 16 ESP_PARTITION_SUBTYPE_ANY, 17 NULL); 18 assert(partition != NULL); 19 20 return partition; 21 } 22