Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions boards/shields/nice_oled/widgets/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,12 @@ static void set_mods_status(struct zmk_widget_screen *widget,
struct mods_status_state state /* No usada directamente */) {
#if !IS_ENABLED(CONFIG_ZMK_SPLIT) || IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
// Obtiene el estado actual de los modificadores directamente
widget->state.mod_state = zmk_hid_get_explicit_mods();
// Vuelve a dibujar todo el canvas para reflejar el cambio
draw_canvas(widget->obj, widget->cbuf, &widget->state);
uint8_t new_state = zmk_hid_get_explicit_mods();
if (widget->state.mod_state != new_state) {
widget->state.mod_state = new_state;
// Vuelve a dibujar todo el canvas para reflejar el cambio
draw_canvas(widget->obj, widget->cbuf, &widget->state);
}
#endif
}

Expand Down