Skip to content

Commit

Permalink
fix: removed size validation (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
JensOgorek authored Oct 15, 2024
1 parent c59898d commit b097d3f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ def show_help() -> None:
esp.activate()
sys.exit()

# Check flash size before proceeding
try:
print(f'Checking flash size on {esp.device}...')
command = ['esptool.py', '--chip', 'esp32', '--port', esp.device, 'flash_id']
output = subprocess.run(command, capture_output=True, text=True, check=True)
if '8MB' not in output.stdout and '8388608' not in output.stdout:
print('Aborting: Device does not have 8MB flash.')
sys.exit(1)
except subprocess.CalledProcessError as e:
print(f'Failed to check flash size: {e}')
sys.exit(1)

with esp.pin_config(), esp.flash_mode():
if erase_flash:
print('Erasing Flash...')
Expand Down

0 comments on commit b097d3f

Please sign in to comment.