fix(shields): Proper cradio Kconfig setup.
This commit is contained in:
parent
ed28f5a6a3
commit
e468677c4e
2 changed files with 20 additions and 4 deletions
|
@ -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
|
config ZMK_KEYBOARD_NAME
|
||||||
default "cradio"
|
default "cradio left"
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
if SHIELD_CRADIO_RIGHT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
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
|
||||||
|
|
|
@ -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…
Reference in a new issue