From 899c254626d00c871bf5cdadf35aae6bad533cf7 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:34:30 +0100 Subject: [PATCH] block factory image --- esp_flasher/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esp_flasher/__main__.py b/esp_flasher/__main__.py index 7657f0b..f15405d 100644 --- a/esp_flasher/__main__.py +++ b/esp_flasher/__main__.py @@ -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)