Skip to content

Commit 8488b31

Browse files
committed
Init directly
1 parent 87c78be commit 8488b31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ports/esp32s2/supervisor/internal_flash.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ STATIC const esp_partition_t * _partition;
4646
// TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
4747
#define SECTOR_SIZE 4096
4848
STATIC uint8_t _cache[SECTOR_SIZE];
49-
STATIC uint32_t _cache_lba;
49+
STATIC uint32_t _cache_lba = 0xffffffff;
5050

5151
void supervisor_flash_init(void) {
5252
_partition = esp_partition_find_first(ESP_PARTITION_TYPE_DATA,
5353
ESP_PARTITION_SUBTYPE_DATA_FAT,
5454
NULL);
55-
_cache_lba = 0xffffffff;
5655
}
5756

5857
uint32_t supervisor_flash_get_block_size(void) {

0 commit comments

Comments
 (0)