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 d3d920eacb
commit 69950910cb
3 changed files with 5 additions and 4 deletions

View File

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