refactor(split): move event listener out of Bluetooth directory

This commit is contained in:
Xudong Zheng 2023-12-23 15:49:32 -05:00
parent f019524600
commit 2b3de1bc1a
3 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,10 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT
if (CONFIG_ZMK_SPLIT_BLE AND (NOT CONFIG_ZMK_SPLIT_ROLE_CENTRAL))
target_sources(app PRIVATE listener.c)
endif()
if (CONFIG_ZMK_SPLIT_BLE)
add_subdirectory(bluetooth)
endif()

View file

@ -2,10 +2,10 @@
# SPDX-License-Identifier: MIT
if (NOT CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources(app PRIVATE split_listener.c)
target_sources(app PRIVATE service.c)
target_sources(app PRIVATE peripheral.c)
endif()
if (CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources(app PRIVATE central.c)
endif()