From f0035c0589ff9e9dffbdf1570f1be395e65becda Mon Sep 17 00:00:00 2001 From: atar-axis Date: Mon, 22 Jul 2019 16:17:55 +0200 Subject: [PATCH] added debug msg for ff report --- hid-xpadneo/src/hid-xpadneo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index 53c134a5..9df17e70 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -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, @@ -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; }