Skip to content

Commit

Permalink
Fix dynamic macro
Browse files Browse the repository at this point in the history
  Ref: comments in PR1351
  • Loading branch information
yuanbin committed May 27, 2024
1 parent e4994d6 commit 3cdaf1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/behaviors/behavior_dynamic_macro.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright (c) 2022 The ZMK Contributors
*
Expand Down Expand Up @@ -177,7 +178,7 @@ static int dynamic_macro_keycode_state_changed_listener(const zmk_event_t *eh) {
} else {
macro->state->bindings[macro->count].pressed = false;
}
macro->state->bindings[macro->count].binding.behavior_dev = "KEY_PRESS";
macro->state->bindings[macro->count].binding.behavior_dev = "key_press";
macro->state->bindings[macro->count].binding.param1 = HID_KEY_USAGE_PAGE + ev->keycode;
macro->state->bindings[macro->count].binding.param2 = 0;

Expand Down

0 comments on commit 3cdaf1a

Please sign in to comment.