From 9fb6c9ddd7adac3e2fba6005dda751b9c276509c Mon Sep 17 00:00:00 2001 From: Yuchao Guo Date: Sat, 8 Jul 2023 21:41:55 +0800 Subject: [PATCH] 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 --- scripts/west_commands/runners/uf2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/west_commands/runners/uf2.py b/scripts/west_commands/runners/uf2.py index 7cb5eced39025a..87db248c7bf307 100644 --- a/scripts/west_commands/runners/uf2.py +++ b/scripts/west_commands/runners/uf2.py @@ -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