fix(bluetooth): Stop adv on connected profile.

This commit is contained in:
Pete Johanson 2020-10-16 00:56:05 -04:00
parent 818f0a1f91
commit b07475b7d4

View file

@ -176,6 +176,10 @@ int update_advertising() {
LOG_DBG("advertising from %d to %d", advertising_status, desired_adv);
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_CONN):
CHECKED_ADV_STOP();