fix(spi_flash): Fix issue that bit_length is wrong on suspend chip because not judge idle correctly

This commit is contained in:
C.S.M
2024-07-23 14:20:45 +08:00
parent d756e6d208
commit 4b86e6424b
5 changed files with 6 additions and 10 deletions

View File

@@ -399,7 +399,7 @@ static inline void spimem_flash_ll_user_start(spi_mem_dev_t *dev, bool pe_ops)
*/
static inline bool spimem_flash_ll_host_idle(const spi_mem_dev_t *dev)
{
return dev->fsm.spi0_mst_st == 0;
return dev->cmd.mst_st == 0;
}
/**