diff options
-rw-r--r-- | esp8266/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile index c5f6231a19..9c994c437b 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -80,6 +80,9 @@ deploy: $(BUILD)/firmware-combined.bin #$(Q)esptool.py --port $(PORT) write_flash 0 $< $(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin +reset: + echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT) + $(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf $(ECHO) "Create $@" $(Q)esptool.py elf2image $^ |