mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 13:27:36 +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
@@ -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
|
||||
|
Reference in New Issue
Block a user