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 87c78be commit 8488b31Copy full SHA for 8488b31
ports/esp32s2/supervisor/internal_flash.c
@@ -46,13 +46,12 @@ STATIC const esp_partition_t * _partition;
46
// TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
47
#define SECTOR_SIZE 4096
48
STATIC uint8_t _cache[SECTOR_SIZE];
49
-STATIC uint32_t _cache_lba;
+STATIC uint32_t _cache_lba = 0xffffffff;
50
51
void supervisor_flash_init(void) {
52
_partition = esp_partition_find_first(ESP_PARTITION_TYPE_DATA,
53
ESP_PARTITION_SUBTYPE_DATA_FAT,
54
NULL);
55
- _cache_lba = 0xffffffff;
56
}
57
58
uint32_t supervisor_flash_get_block_size(void) {
0 commit comments