Browse Source

fix(shields): Proper cradio Kconfig setup.

xmkb
Pete Johanson 4 years ago
parent
commit
e468677c4e
  1. 17
      app/boards/shields/cradio/Kconfig.defconfig
  2. 7
      app/boards/shields/cradio/Kconfig.shield

17
app/boards/shields/cradio/Kconfig.defconfig

@ -1,10 +1,23 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
if SHIELD_CRADIO_LEFT
config ZMK_KEYBOARD_NAME
default "cradio left"
endif
if SHIELD_CRADIO_RIGHT
config ZMK_KEYBOARD_NAME config ZMK_KEYBOARD_NAME
default "cradio" default "cradio right"
endif
if SHIELD_CRADIO_RIGHT || SHIELD_CRADIO_LEFT
config ZMK_KSCAN_DIRECT_POLLING config ZMK_KSCAN_DIRECT_POLLING
default y default y
endif

7
app/boards/shields/cradio/Kconfig.shield

@ -1,5 +1,8 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
config SHIELD_CRADIO config SHIELD_CRADIO_LEFT
def_bool $(shields_list_contains,cradio) def_bool $(shields_list_contains,cradio_left)
config SHIELD_CRADIO_RIGHT
def_bool $(shields_list_contains,cradio_right)

Loading…
Cancel
Save