diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 343ca65a..7a4c211e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -3,7 +3,6 @@ name: pre-commit on: pull_request: push: - workflow_dispatch: jobs: pre-commit: diff --git a/app/src/ble.c b/app/src/ble.c index bb8fa106..6168dffa 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -268,7 +268,6 @@ static int ble_save_profile(void) { int zmk_ble_prof_select(uint8_t index) { if (index == 255) { index = last_profile; - last_profile = active_profile; } if (index >= ZMK_BLE_PROFILE_COUNT) { @@ -280,6 +279,7 @@ int zmk_ble_prof_select(uint8_t index) { return 0; } + last_profile = active_profile; active_profile = index; ble_save_profile();