Add FW update functionality

* refactor code
This commit is contained in:
silbo
2020-08-23 20:27:22 +02:00
parent 51f979f90e
commit fc11ffdad4
4 changed files with 75 additions and 38 deletions

View File

@@ -1,8 +1,18 @@
#!/bin/bash
#SERIAL_PORT=/dev/ttyUSB0
SERIAL_PORT=/dev/tty.usbserial-1420
#SERIAL_PORT=/dev/tty.SLAB_USBtoUART
SERIAL_PORT=/dev/ttyUSB0
ifeq (,$(wildcard $(SERIAL_PORT)))
SERIAL_PORT=/dev/tty.usbserial-1410
endif
ifeq (,$(wildcard $(SERIAL_PORT)))
SERIAL_PORT=/dev/tty.usbserial-1420
endif
ifeq (,$(wildcard $(SERIAL_PORT)))
SERIAL_PORT=/dev/tty.SLAB_USBtoUART
endif
all: flash delay config update reset