diff options
author | Joel Spadin <joelspadin@gmail.com> | 2020-10-28 18:11:34 -0500 |
---|---|---|
committer | Joel Spadin <joelspadin@gmail.com> | 2020-10-28 18:15:05 -0500 |
commit | 821f0540711158985eb38b360b1f1b422408ca31 (patch) | |
tree | d32736969d8b116ad8fcf8186e6e2548a702b3ea /app/src | |
parent | 440d09fd45fa59de481837825d27635819ad1c37 (diff) |
feat(endpoints): remove redundant connection check
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/ble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/ble.c b/app/src/ble.c index a79f723..f3962ae 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -169,7 +169,7 @@ int update_advertising() { struct bt_conn *conn; enum advertising_type desired_adv = ZMK_ADV_NONE; - if (active_profile_is_open() || !zmk_ble_active_profile_is_connected()) { + if (active_profile_is_open()) { desired_adv = ZMK_ADV_CONN; } else if (!zmk_ble_active_profile_is_connected()) { desired_adv = ZMK_ADV_CONN; |