fixed
This commit is contained in:
parent
cac692e9c3
commit
d77c2e324b
2 changed files with 1 additions and 2 deletions
1
.github/workflows/pre-commit.yml
vendored
1
.github/workflows/pre-commit.yml
vendored
|
@ -3,7 +3,6 @@ name: pre-commit
|
|||
on:
|
||||
pull_request:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue