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

@@ -224,7 +224,7 @@ static inline void spi_flash_ll_user_start(spi_dev_t *dev)
*/
static inline bool spi_flash_ll_host_idle(const spi_dev_t *dev)
{
return dev->ext2.st != 0;
return dev->ext2.st == 0;
}
/*------------------------------------------------------------------------------
@@ -390,4 +390,4 @@ static inline void spi_flash_ll_set_dummy(spi_dev_t *dev, uint32_t dummy_n)
#ifdef __cplusplus
}
#endif
#endif