mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 15:47:13 +00:00
esp_flash: fix the incorrect check_idle logic in LL and chip_driver
This commit is contained in:

committed by
bot

parent
92b72aa6c8
commit
fe37db3271
@@ -156,7 +156,7 @@ static inline void gpspi_flash_ll_user_start(spi_dev_t *dev)
|
||||
*/
|
||||
static inline bool gpspi_flash_ll_host_idle(const spi_dev_t *dev)
|
||||
{
|
||||
return dev->fsm.st != 0;
|
||||
return dev->fsm.st == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -202,7 +202,7 @@ static inline void spimem_flash_ll_user_start(spi_mem_dev_t *dev)
|
||||
*/
|
||||
static inline bool spimem_flash_ll_host_idle(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return dev->fsm.st != 0;
|
||||
return dev->fsm.st == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user