Skip to content

Commit

Permalink
snagrecover: fastboot: Correct indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Gantois <[email protected]>
  • Loading branch information
rgantois committed Jul 1, 2024
1 parent 30ec8fe commit 3e53405
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/snagrecover/protocols/fastboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def __init__(self, dev: usb.core.Device, timeout: int = 10000):
else:
ep_out = ep.bEndpointAddress
if not ((ep_in is None) or (ep_out is None)):
eps_found = True
break
eps_found = True
break

if not eps_found:
raise Exception("No BULK IN/OUT endpoint pair found in device")
raise Exception("No BULK IN/OUT endpoint pair found in device")
self.ep_in = ep_in
self.ep_out = ep_out
self.timeout = timeout
Expand Down

0 comments on commit 3e53405

Please sign in to comment.