From d77c2e324b62fa9689285f617dbcaf54ea7556cc Mon Sep 17 00:00:00 2001 From: DK Date: Fri, 19 Apr 2024 08:41:10 +0200 Subject: [PATCH] fixed --- .github/workflows/pre-commit.yml | 1 - app/src/ble.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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();