esp_flash: fix the incorrect check_idle logic in LL and chip_driver

This commit is contained in:
Michael (XIAO Xufeng)
2020-09-21 10:59:07 +08:00
committed by bot
parent 92b72aa6c8
commit fe37db3271
5 changed files with 6 additions and 6 deletions

View File

@@ -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;
}
/**

View File

@@ -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;
}
/**