Fix for return value from HID mod functions.
This commit is contained in:
parent
9e27f0b566
commit
0db57b0c12
1 changed files with 7 additions and 6 deletions
|
@ -9,7 +9,8 @@ static struct zmk_hid_report report = {
|
||||||
{ \
|
{ \
|
||||||
return -EINVAL; \
|
return -EINVAL; \
|
||||||
} \
|
} \
|
||||||
WRITE_BIT(report.modifiers, mod, state);
|
WRITE_BIT(report.modifiers, mod, state); \
|
||||||
|
return 0;
|
||||||
|
|
||||||
int zmk_hid_register_mod(zmk_mod modifier)
|
int zmk_hid_register_mod(zmk_mod modifier)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue