This commit is contained in:
Willow Herring 2025-12-01 12:40:04 +08:00 committed by GitHub
commit fda3e393d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,8 @@
struct zmk_ble_active_profile_changed {
uint8_t index;
struct zmk_ble_profile *profile;
bool open;
bool connected;
};
ZMK_EVENT_DECLARE(zmk_ble_active_profile_changed);

View File

@ -86,7 +86,10 @@ static bt_addr_le_t peripheral_addrs[ZMK_SPLIT_BLE_PERIPHERAL_COUNT];
static void raise_profile_changed_event(void) {
raise_zmk_ble_active_profile_changed((struct zmk_ble_active_profile_changed){
.index = active_profile, .profile = &profiles[active_profile]});
.index = active_profile,
.profile = &profiles[active_profile],
.open = zmk_ble_active_profile_is_open(),
.connected = zmk_ble_active_profile_is_connected()});
}
static void raise_profile_changed_event_callback(struct k_work *work) {