Update app/src/ble.c
Co-authored-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
parent
cc6ab5d52c
commit
c6a3f98833
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ int update_advertising() {
|
|||
struct bt_conn *conn;
|
||||
enum advertising_type desired_adv = ZMK_ADV_NONE;
|
||||
|
||||
uint8_t max_device_name_length = (active_profile > 9) ? 13 : 14;
|
||||
uint8_t max_device_name_length = DEVICE_NAME_ARRAY_MAX_SIZE - ((active_profile > 9) ? 4 : 3);
|
||||
if (max_device_name_length > strlen(DEVICE_NAME)) {
|
||||
max_device_name_length = DEVICE_NAME_LEN;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue