fix: key down and key up were swapped
This commit is contained in:
parent
e9f9050810
commit
3c260301eb
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ static int on_keymap_binding_pressed(struct device *dev, u32_t position, u32_t _
|
|||
{
|
||||
const struct behavior_simple_macro_config *cfg = dev->config_info;
|
||||
|
||||
if (cfg->mode == ZMK_BHV_SIMPLE_MACRO_MODE_KEY_UP)
|
||||
if (cfg->mode == ZMK_BHV_SIMPLE_MACRO_MODE_KEY_DOWN)
|
||||
{
|
||||
LOG_DBG("tapping on key up");
|
||||
for (int index = 0; index < cfg->behavior_count; index++)
|
||||
|
@ -89,7 +89,7 @@ static int on_keymap_binding_released(struct device *dev, u32_t position, u32_t
|
|||
{
|
||||
const struct behavior_simple_macro_config *cfg = dev->config_info;
|
||||
|
||||
if (cfg->mode == ZMK_BHV_SIMPLE_MACRO_MODE_KEY_DOWN)
|
||||
if (cfg->mode == ZMK_BHV_SIMPLE_MACRO_MODE_KEY_UP)
|
||||
{
|
||||
LOG_DBG("tapping on key down");
|
||||
for (int index = 0; index < cfg->behavior_count; index++)
|
||||
|
|
Loading…
Add table
Reference in a new issue