flash_can: don't check firmware path for bootloader requests

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2023-02-15 08:00:12 -05:00
1 parent c5515942a3
commit d6d5c6cc9c
1 file changed
+1 -1
+1 -1
View File
@@ -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,))