mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(spi_flash): Fix Test esp_flash_write
This commit is contained in:
parent
25288d1fa7
commit
fc9c0fb045
@ -223,9 +223,8 @@ static void IRAM_ATTR test_write(int dst_off, int src_off, int len)
|
||||
}
|
||||
ESP_ERROR_CHECK(esp_flash_write(NULL, src_buf + src_off, start + dst_off, len));
|
||||
|
||||
fix_rom_func();
|
||||
|
||||
spi_flash_disable_interrupts_caches_and_other_cpu();
|
||||
fix_rom_func();
|
||||
esp_rom_spiflash_result_t rc = esp_rom_spiflash_read(start, dst_buf, sizeof(dst_buf));
|
||||
spi_flash_enable_interrupts_caches_and_other_cpu();
|
||||
TEST_ASSERT_EQUAL_HEX(rc, ESP_ROM_SPIFLASH_RESULT_OK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user