Skip to content

Commit

Permalink
fix ident
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Nov 4, 2024
1 parent b4dfc12 commit 62fbe20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions esp_flasher/own_esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ def detect_chip(port=DEFAULT_PORT, baud=ESP_ROM_BAUD, connect_mode='default_rese
detect_port.connect(connect_mode, connect_attempts, detecting=True)

def check_if_stub(instance):
print(f" {instance.CHIP_NAME}", end="")
if detect_port.sync_stub_detected:
instance = instance.STUB_CLASS(instance)
instance.sync_stub_detected = True
return instance
print(f" {instance.CHIP_NAME}", end="")
if detect_port.sync_stub_detected:
instance = instance.STUB_CLASS(instance)
instance.sync_stub_detected = True
return instance

try:
print('Detecting chip type...', end='')
Expand Down

0 comments on commit 62fbe20

Please sign in to comment.