fix(bluetooth): Stop adv on connected profile.
This commit is contained in:
parent
818f0a1f91
commit
b07475b7d4
1 changed files with 4 additions and 0 deletions
|
@ -176,6 +176,10 @@ int update_advertising() {
|
||||||
LOG_DBG("advertising from %d to %d", advertising_status, desired_adv);
|
LOG_DBG("advertising from %d to %d", advertising_status, desired_adv);
|
||||||
|
|
||||||
switch (desired_adv + CURR_ADV(advertising_status)) {
|
switch (desired_adv + CURR_ADV(advertising_status)) {
|
||||||
|
case ZMK_ADV_NONE + CURR_ADV(ZMK_ADV_DIR):
|
||||||
|
case ZMK_ADV_NONE + CURR_ADV(ZMK_ADV_CONN):
|
||||||
|
CHECKED_ADV_STOP();
|
||||||
|
break;
|
||||||
case ZMK_ADV_DIR + CURR_ADV(ZMK_ADV_DIR):
|
case ZMK_ADV_DIR + CURR_ADV(ZMK_ADV_DIR):
|
||||||
case ZMK_ADV_DIR + CURR_ADV(ZMK_ADV_CONN):
|
case ZMK_ADV_DIR + CURR_ADV(ZMK_ADV_CONN):
|
||||||
CHECKED_ADV_STOP();
|
CHECKED_ADV_STOP();
|
||||||
|
|
Loading…
Reference in a new issue