From d6d5c6cc9cd107ead8e121b00ba851e2ce555917 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 15 Feb 2023 08:00:12 -0500 Subject: [PATCH] flash_can: don't check firmware path for bootloader requests Signed-off-by: Eric Callahan --- scripts/flash_can.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/flash_can.py b/scripts/flash_can.py index b4ac5e1..5cd23fe 100755 --- a/scripts/flash_can.py +++ b/scripts/flash_can.py @@ -443,7 +443,7 @@ class CanSocket: async def run( self, intf: str, uuid: int, fw_path: pathlib.Path, req_only: bool ) -> None: - if not fw_path.is_file(): + if not req_only and not fw_path.is_file(): raise FlashCanError("Invalid firmware path '%s'" % (fw_path)) try: self.cansock.bind((intf,))