Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Dec 3, 2023
1 parent 63d84ba commit 424505c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions esptool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ def add_spi_connection_arg(parent):
parser_load_ram = subparsers.add_parser(
"load_ram", help="Download an image to RAM and execute"
)
parser_load_ram.add_argument(
"filename", help="Firmware image"
)
parser_load_ram.add_argument("filename", help="Firmware image")

parser_dump_mem = subparsers.add_parser(
"dump_mem", help="Dump arbitrary memory to disk"
Expand Down Expand Up @@ -359,9 +357,7 @@ def add_spi_flash_subparsers(parent, allow_keep, auto_detect):
parser_image_info = subparsers.add_parser(
"image_info", help="Dump headers from a binary file (bootloader or application)"
)
parser_image_info.add_argument(
"filename", help="Image file to parse"
)
parser_image_info.add_argument("filename", help="Image file to parse")
parser_image_info.add_argument(
"--version",
"-v",
Expand Down
2 changes: 0 additions & 2 deletions esptool/bin_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import os
import re
import struct
import tempfile
from typing import BinaryIO, Optional

from .loader import ESPLoader
from .targets import (
Expand Down
6 changes: 4 additions & 2 deletions esptool/targets/esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,11 @@ def hard_reset(self):
uses_usb_otg = self.uses_usb_otg()
if uses_usb_otg:
self._check_if_can_reset()
# issue https://github.com/espressif/arduino-esp32/issues/6762#issuecomment-1829942230
# github.com/espressif/arduino-esp32/issues/6762#issuecomment-1829942230
# Clear "Force Download Boot" flag, otherwise we keep resetting to boot mode
self.write_reg(self.RTC_CNTL_OPTION1_REG, 0, self.RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK)
self.write_reg(
self.RTC_CNTL_OPTION1_REG, 0, self.RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK
)

print("Hard resetting via RTS pin...")
HardReset(self._port, uses_usb_otg)()
Expand Down

0 comments on commit 424505c

Please sign in to comment.