feat(setup): Disallow split w/ wired controller.

For now, disallow wired split combination during setup.
This commit is contained in:
Peter Johanson
2022-05-03 02:54:38 +00:00
committed by Pete Johanson
parent 8bbbf530a7
commit 6227866e8c
3 changed files with 19 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ if [ "$keyboard_shield" == "y" ]; then
prompt="Pick an MCU board:"
options=({{#boards}}"{{{name}}}" {{/boards}})
board_ids=({{#boards}}"{{id}}" {{/boards}})
boards_usb_only=({{#boards}}"{{#usb_only}}y{{/usb_only}}{{^usb_only}}n{{/usb_only}}" {{/boards}})
echo ""
echo "MCU Board Selection:"
@@ -134,6 +135,12 @@ if [ "$keyboard_shield" == "y" ]; then
echo "Invalid option. Try another one."
continue
fi
if [ -n "${!keyboard_sibling_first}" ] && [ "${boards_usb_only[$board_index]}" = "y" ] ; then
echo "Wired split is not yet supported by ZMK."
exit 1
fi
board_index=$(( $REPLY-1 ))
board=${board_ids[$board_index]}
board_title=${options[$board_index]}