mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 19:34:06 +02:00
flash_can: don't check firmware path for bootloader requests
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
c5515942a3
commit
d6d5c6cc9c
@ -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,))
|
||||
|
Loading…
x
Reference in New Issue
Block a user