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.
2 parents 398b6a5 + 5b9b5d9 commit d02edc2Copy full SHA for d02edc2
components/spi_flash/esp32/flash_ops_esp32.c
@@ -35,15 +35,11 @@ static inline void IRAM_ATTR spi_flash_guard_end(void)
35
esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *src, size_t size)
36
{
37
const uint8_t *ssrc = (const uint8_t *)src;
38
- esp_rom_spiflash_result_t rc;
+ esp_rom_spiflash_result_t rc = ESP_ROM_SPIFLASH_RESULT_OK;
39
40
assert((dest_addr % 16) == 0);
41
assert((size % 16) == 0);
42
43
- rc = esp_rom_spiflash_unlock();
44
- if (rc != ESP_ROM_SPIFLASH_RESULT_OK) {
45
- return rc;
46
- }
47
/* esp_rom_spiflash_write_encrypted encrypts data in RAM as it writes,
48
so copy to a temporary buffer - 32 bytes at a time.
49
0 commit comments