This commit is contained in:
DK 2024-04-19 08:41:10 +02:00 committed by GitHub
parent cac692e9c3
commit d77c2e324b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -3,7 +3,6 @@ name: pre-commit
on: on:
pull_request: pull_request:
push: push:
workflow_dispatch:
jobs: jobs:
pre-commit: pre-commit:

View file

@ -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();