diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-12-19 17:32:40 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-28 10:20:12 -0500 |
commit | 05b0d185a8c8c4eb19f63968e54f859a0f3e6484 (patch) | |
tree | c95bd966336cc3476170054dcc4ffa56a448864a /app/src | |
parent | 87179698b42a627f4ab7653749377001cb090fed (diff) |
refactor(app): replace zmk_mod with zmk_mod_t
Aligns with typedef _t convention.
PR: #531
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/hid.c b/app/src/hid.c index 50166c4..de853d8 100644 --- a/app/src/hid.c +++ b/app/src/hid.c @@ -26,7 +26,7 @@ static zmk_mod_flags explicit_modifiers = 0; LOG_DBG("Modifiers set to 0x%02X", keyboard_report.body.modifiers); \ } -int zmk_hid_register_mod(zmk_mod modifier) { +int zmk_hid_register_mod(zmk_mod_t modifier) { explicit_modifier_counts[modifier]++; LOG_DBG("Modifier %d count %d", modifier, explicit_modifier_counts[modifier]); WRITE_BIT(explicit_modifiers, modifier, true); @@ -34,7 +34,7 @@ int zmk_hid_register_mod(zmk_mod modifier) { return 0; } -int zmk_hid_unregister_mod(zmk_mod modifier) { +int zmk_hid_unregister_mod(zmk_mod_t modifier) { if (explicit_modifier_counts[modifier] <= 0) { LOG_ERR("Tried to unregister modifier %d too often", modifier); return -EINVAL; |