Merge pull request #222 from genehack/nicer-error

Don't flash the device unless we successfully detected the device
pull/224/head
Jesse Vincent 7 years ago committed by GitHub
commit 6d3828c134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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