Don't flash the device unless we successfully detected the device

Nicer error messages are nicer.
pull/222/head
John SJ Anderson 7 years ago
parent 8741c68f7b
commit 5c7eb2427a

@ -212,6 +212,15 @@ clean () {
} }
reset_device () { reset_device () {
if [ -z $DEVICE_PORT ]; then
echo "Couldn't autodetect the keyboard's serial port."
echo "If you see this message and your keyboard is connected to your computer,"
echo "it probably means that our serial port detection logic is buggy or incomplete."
echo
echo "Please report this issue at https://github.com/keyboardio/Kaleidoscope";
exit 0;
fi
${RESET_DEVICE} ${RESET_DEVICE}
} }

Loading…
Cancel
Save