Add missing returns for the new modifiers functions.

This commit is contained in:
Pete Johanson 2020-05-27 23:14:09 -04:00
parent 1423fe175c
commit 6e1e21c2be

View file

@ -24,13 +24,13 @@ int zmk_hid_unregister_mod(zmk_mod modifier)
int zmk_hid_register_mods(zmk_mod_flags modifiers)
{
report.modifiers |= modifiers;
printk("After register mods %d have %d\n", modifiers, report.modifiers);
return 0;
}
int zmk_hid_unregister_mods(zmk_mod_flags modifiers)
{
report.modifiers &= ~modifiers;
printk("After unregister mods %d have %d\n", modifiers, report.modifiers);
return 0;
}
#define KEY_OFFSET 0x02