Skip to content

Commit

Permalink
apple
Browse files Browse the repository at this point in the history
  • Loading branch information
juliekoubova committed Jun 30, 2024
1 parent fb85c3e commit 617ee43
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions keyboards/keychron/q4/ansi/keymaps/juliekoubova/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

#ifdef OS_DETECTION_ENABLE

static os_variant_t detected_os;
static bool is_apple = false;

bool process_detected_host_os_user(os_variant_t os) {
detected_os = os;
dprintf("OS detected: %d\n", detected_os);
vim_set_apple(os == OS_MACOS || os == OS_IOS);
dprintf("OS detected: %d\n", os);
is_apple = os == OS_MACOS || os == OS_IOS;
vim_set_apple(is_apple);
return true;
}

Expand All @@ -66,7 +66,6 @@ bool process_detected_host_os_user(os_variant_t os) {

bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
uint8_t layer = get_highest_layer(layer_state);
bool is_apple = detected_os == OS_MACOS || detected_os == OS_IOS;

for (uint8_t row = 0; row < MATRIX_ROWS; ++row) {
for (uint8_t col = 0; col < MATRIX_COLS; ++col) {
Expand Down

0 comments on commit 617ee43

Please sign in to comment.