esp32s2: Fix 'make flash'

As reported by @jerryneedell, this change was incorrect; the given
ESPTOOL_FLAGS caused `write_flash` to be repeated twice, which doesn't
work.

Closes #3981.
This commit is contained in:
Jeff Epler 2021-01-12 16:04:29 -06:00
parent f9c762256f
commit ed0cb248e9
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ ESP_AUTOGEN_LD = $(BUILD)/esp-idf/esp-idf/esp32s2/esp32s2_out.ld $(BUILD)/esp-id
FLASH_FLAGS = --flash_mode $(CIRCUITPY_ESP_FLASH_MODE) --flash_freq $(CIRCUITPY_ESP_FLASH_FREQ) --flash_size $(CIRCUITPY_ESP_FLASH_SIZE)
ESPTOOL_FLAGS ?= -b 460800 --before=default_reset --after=no_reset write_flash
ESPTOOL_FLAGS ?= -b 460800 --before=default_reset --after=no_reset
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2