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:
Yuchao Guo 2023-07-08 21:41:55 +08:00 committed by Carles Cufí
commit 9fb6c9ddd7

View file

@ -49,7 +49,7 @@ class UF2BinaryRunner(ZephyrBinaryRunner):
@staticmethod
def is_uf2_partition(part):
try:
return ((part.fstype in ['vfat', 'FAT']) and
return ((part.fstype in ['vfat', 'FAT', 'msdos']) and
UF2BinaryRunner.get_uf2_info_path(part).is_file())
except PermissionError:
return False