9
0
Fork 0

update delays

This commit is contained in:
Silver Kuusik 2018-07-11 21:12:08 +02:00 committed by GitHub
parent e5b05853c4
commit dbcd007c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -2,22 +2,21 @@
SERIAL_PORT=/dev/tty.wchusbserial1410
#SERIAL_PORT=/dev/ttyUSB0
all: flash lib config update reboot
all: flash lib config update reset
reboot:
reset:
esptool.py -p $(SERIAL_PORT) --after hard_reset read_mac
lib:
sleep 1
ampy -p $(SERIAL_PORT) put uwebsockets.py
ampy -d 0.5 -p $(SERIAL_PORT) put uwebsockets.py
update:
ampy -p $(SERIAL_PORT) put hal.py
ampy -p $(SERIAL_PORT) put main.py
ampy -p $(SERIAL_PORT) put boot.py
ampy -d 0.5 -p $(SERIAL_PORT) put hal.py
ampy -d 0.5 -p $(SERIAL_PORT) put main.py
ampy -d 0.5 -p $(SERIAL_PORT) put boot.py
config:
ampy -p $(SERIAL_PORT) put config.json
ampy -d 0.5 -p $(SERIAL_PORT) put config.json
flash:
esptool.py -p $(SERIAL_PORT) -b 460800 erase_flash