mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Fix legacy emmc detection issue on 6735
This commit is contained in:
parent
1b2486dca3
commit
0f8b56ed8b
1 changed files with 2 additions and 1 deletions
|
@ -1100,8 +1100,9 @@ class DALegacy(metaclass=LogBase):
|
|||
if self.read_flash_info():
|
||||
if self.daconfig.flashtype == "nand":
|
||||
self.daconfig.flashsize = self.nand.m_nand_flash_size
|
||||
elif self.daconfig.flashtype == "emmc":
|
||||
elif self.daconfig.flashtype == "emmc" or self.emmc.m_emmc_ua_size!=0:
|
||||
self.daconfig.flashsize = self.emmc.m_emmc_ua_size
|
||||
self.daconfig.flashtype = "emmc"
|
||||
if self.daconfig.flashsize == 0:
|
||||
self.daconfig.flashsize = self.sdc.m_sdmmc_ua_size
|
||||
elif self.daconfig.flashtype == "nor":
|
||||
|
|
Loading…
Reference in a new issue