fix(shields): Fix incorrect union access in nice view
Fixed an error in a previous commit where a member of the selected endpoint was used without checking if it was the correct transport type. The nice!view status screen displays the active BLE profile regardless of whether BLE is active, so we have to get that data directly from the BLE code instead of from the selected endpoint.
This commit is contained in:
parent
fd05478897
commit
8a84b7dd5b
2 changed files with 5 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ struct status_state {
|
|||
bool charging;
|
||||
#if !IS_ENABLED(CONFIG_ZMK_SPLIT) || IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
struct zmk_endpoint_instance selected_endpoint;
|
||||
int active_profile_index;
|
||||
bool active_profile_connected;
|
||||
bool active_profile_bonded;
|
||||
uint8_t layer_index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue