Skip to content

Commit

Permalink
fix: Appease linter which was failing
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jul 17, 2024
1 parent e894d66 commit 323620e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions esp_idf_monitor/base/serial_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def run(self):
# type: () -> None
if not self.serial.is_open:
self.serial.baudrate = self.baud
printed_failure = False
retry_attempts = 0
while True:
try:
Expand All @@ -53,18 +52,18 @@ def run(self):
self.open_serial(reset=not self.gdb_exit and self.reset)
if retry_attempts > 0:
# break the retrying line
print("")
print('')
break
except serial.SerialException as e:
if retry_attempts == 0:
print(e)
if self.retry_open:
# only print this once
yellow_print("Retrying to open port ", newline='')
yellow_print('Retrying to open port ', newline='')
if self.retry_open:
if retry_attempts % 9 == 0:
# print a dot every second
yellow_print(".", newline='')
yellow_print('.', newline='')
time.sleep(0.1)
retry_attempts += 1
continue
Expand Down

0 comments on commit 323620e

Please sign in to comment.