Skip to content

Commit

Permalink
Only send DBG message for non-empty mods
Browse files Browse the repository at this point in the history
  • Loading branch information
urob committed Apr 6, 2023
1 parent 425777c commit b126814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/behaviors/behavior_caps_word.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ static void caps_word_enhance_usage(const struct behavior_caps_word_config *conf
return;
}

LOG_DBG("Enhancing usage 0x%02X with modifiers: 0x%02X", ev->keycode, config->mods);
if (config->mods != 0) {
LOG_DBG("Enhancing usage 0x%02X with modifiers: 0x%02X", ev->keycode, config->mods);
ev->implicit_modifiers |= config->mods;
}
}
Expand Down

0 comments on commit b126814

Please sign in to comment.