Skip to content

fix: (Moonlander) User code not called and Oryx status not updated on layer switch with MOONLANDER_USER_LEDS defined#410

Open
jacostro wants to merge 1 commit intozsa:firmware24from
jacostro:f24_moonlander_layer_switch_fix
Open

fix: (Moonlander) User code not called and Oryx status not updated on layer switch with MOONLANDER_USER_LEDS defined#410
jacostro wants to merge 1 commit intozsa:firmware24from
jacostro:f24_moonlander_layer_switch_fix

Conversation

@jacostro
Copy link

If MOONLANDER_USER_LEDS symbol is defined, layer_state_set_user and layer_state_set_oryx are not called, hence:

  • user code layer updates are not applied,
  • layer status in Oryx and Keymapp is not updated.

Description

Moved calls outside of #if !defined(MOONLANDER_USER_LEDS) block, keeping layer_state_set_oryx dependent on ORYX_ENABLED definition.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

@blueyed
Copy link

blueyed commented Jan 22, 2026

Looks sensible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants