mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-04-23 09:52:19 +00:00
fix(split): add source to battery event (#2901)
This commit is contained in:
parent
9aadc3e5ab
commit
6f85f48b19
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ int zmk_split_transport_central_peripheral_event_handler(
|
|||
#if IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING)
|
||||
case ZMK_SPLIT_TRANSPORT_PERIPHERAL_EVENT_TYPE_BATTERY_EVENT: {
|
||||
struct zmk_peripheral_battery_state_changed battery_ev = {
|
||||
.source = source,
|
||||
.state_of_charge = ev.data.battery_event.level,
|
||||
};
|
||||
peripheral_battery_levels[source] = ev.data.battery_event.level;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue