Skip to content

Commit

Permalink
block factory image
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Nov 16, 2023
1 parent ed69a86 commit 899c254
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp_flasher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def run_esp_flasher(argv):
args = parse_args(argv)
port = select_port(args)

if "factory" in args.binary:
print("Flashing of factory image not supported, please use plain firmware image.")
return

if args.show_logs:
serial_port = serial.Serial(port, baudrate=115200)
show_logs(serial_port)
Expand Down

0 comments on commit 899c254

Please sign in to comment.