Skip to content

Commit

Permalink
added debug msg for ff report
Browse files Browse the repository at this point in the history
  • Loading branch information
atar-axis committed Jul 22, 2019
1 parent 560e3ea commit f0035c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ static int xpadneo_ff_play(struct input_dev *dev, void *data,
int fraction_TL, fraction_TR;
u8 trigger_rumble_damping_nonzero;

int ret = 0;

enum {
DIRECTION_DOWN = 0x0000,
DIRECTION_LEFT = 0x4000,
Expand Down Expand Up @@ -329,7 +331,8 @@ static int xpadneo_ff_play(struct input_dev *dev, void *data,
ff_pck.ff.magnitude_left_trigger,
ff_pck.ff.magnitude_right_trigger);

hid_hw_output_report(hdev, (u8 *)&ff_pck, sizeof(ff_pck));
ret = hid_hw_output_report(hdev, (u8 *)&ff_pck, sizeof(ff_pck));
hid_dbg_lvl(DBG_LVL_FEW, hdev, "hid_hw_output_report returned with %d\n", ret);

return 0;
}
Expand Down

1 comment on commit f0035c0

@kakra
Copy link
Collaborator

@kakra kakra commented on f0035c0 May 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch is outdated, we are now reporting ff report write errors unconditionally.

Please sign in to comment.