|
|
@ -36,6 +36,11 @@ DEVICE_PORT="$(ls /dev/ttyACM* 2>/dev/null || echo '')"
|
|
|
|
RESET_DEVICE="stty -F ${DEVICE_PORT} 1200 hupcl"
|
|
|
|
RESET_DEVICE="stty -F ${DEVICE_PORT} 1200 hupcl"
|
|
|
|
MD5="md5sum"
|
|
|
|
MD5="md5sum"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_bootloader_ports() {
|
|
|
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="$(ls /dev/ttyACM* 2>/dev/null || echo '')"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
DEVICE_PORT="$(ls /dev/cu.usbmodemkbio* 2> /dev/null || echo '')"
|
|
|
|
DEVICE_PORT="$(ls /dev/cu.usbmodemkbio* 2> /dev/null || echo '')"
|
|
|
@ -52,19 +57,14 @@ if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
MD5="md5"
|
|
|
|
MD5="md5"
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
find_bootloader_ports() {
|
|
|
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="$(ls /dev/cu.usbmodemkbio* 2> /dev/null || echo '')"
|
|
|
|
find_bootloader_ports() {
|
|
|
|
DEVICE_PORT_BOOTLOADER="${DEVICE_PORT_BOOTLOADER:-$(ls /dev/cu.usbmodem14* 2> /dev/null || echo '')}"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="$(ls /dev/ttyACM* 2>/dev/null || echo '')"
|
|
|
|
|
|
|
|
if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="$(ls /dev/cu.usbmodemkbio* 2> /dev/null || echo '')"
|
|
|
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="${DEVICE_PORT_BOOTLOADER:-$(ls /dev/cu.usbmodem14* 2> /dev/null || echo '')}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######
|
|
|
|
######
|
|
|
|
###### Arduino tools configuration
|
|
|
|
###### Arduino tools configuration
|
|
|
|