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 2023-02-15 08:00:12 -05:00
parent c5515942a3
commit d6d5c6cc9c
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B

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,))