west: runners: uf2: Add more fstype check for is_uf2_partition
During testing it was found that if the partition type was displayed as msdos it could not be detected correctly, so this partition type determination was added. Signed-off-by: Yuchao Guo <yuchao.guo@hoorii.io>
This commit is contained in:
parent
774da57db9
commit
9fb6c9ddd7
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class UF2BinaryRunner(ZephyrBinaryRunner):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_uf2_partition(part):
|
def is_uf2_partition(part):
|
||||||
try:
|
try:
|
||||||
return ((part.fstype in ['vfat', 'FAT']) and
|
return ((part.fstype in ['vfat', 'FAT', 'msdos']) and
|
||||||
UF2BinaryRunner.get_uf2_info_path(part).is_file())
|
UF2BinaryRunner.get_uf2_info_path(part).is_file())
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue