We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe7308 commit 2618e11Copy full SHA for 2618e11
ports/espressif/supervisor/internal_flash.c
@@ -37,7 +37,8 @@
37
#include "py/runtime.h"
38
#include "lib/oofatfs/ff.h"
39
40
-#include "components/spi_flash/include/esp_partition.h"
+#include "esp_ota_ops.h"
41
+#include "esp_partition.h"
42
43
#include "supervisor/flash.h"
44
#include "supervisor/usb.h"
@@ -60,9 +61,7 @@ void supervisor_flash_init(void) {
60
61
ESP_PARTITION_SUBTYPE_DATA_FAT,
62
NULL);
63
#if CIRCUITPY_STORAGE_EXTEND
- _partition[1] = esp_partition_find_first(ESP_PARTITION_TYPE_APP,
64
- ESP_PARTITION_SUBTYPE_APP_OTA_1,
65
- NULL);
+ _partition[1] = esp_ota_get_next_update_partition(NULL);
66
#endif
67
}
68
0 commit comments