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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
|
|
|
@ -268,7 +268,6 @@ static int ble_save_profile(void) {
|
||||||
int zmk_ble_prof_select(uint8_t index) {
|
int zmk_ble_prof_select(uint8_t index) {
|
||||||
if (index == 255) {
|
if (index == 255) {
|
||||||
index = last_profile;
|
index = last_profile;
|
||||||
last_profile = active_profile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index >= ZMK_BLE_PROFILE_COUNT) {
|
if (index >= ZMK_BLE_PROFILE_COUNT) {
|
||||||
|
@ -280,6 +279,7 @@ int zmk_ble_prof_select(uint8_t index) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
last_profile = active_profile;
|
||||||
active_profile = index;
|
active_profile = index;
|
||||||
ble_save_profile();
|
ble_save_profile();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue