Skip to content

Commit

Permalink
west: runners: uf2: Add more fstype check for is_uf2_partition
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ihidchaos authored and carlescufi committed Sep 6, 2023
1 parent 774da57 commit 9fb6c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/uf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_uf2_info_path(part) -> Path:
@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
Expand Down

0 comments on commit 9fb6c9d

Please sign in to comment.