From ec93460d28edd9af4a34e696726d9a9db66c18b8 Mon Sep 17 00:00:00 2001 From: matlo Date: Sun, 3 May 2020 16:22:52 +0200 Subject: [PATCH] Fix message with incorrect joystick (id=-1, name=null). --- core/controller.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/controller.c b/core/controller.c index 4c2b6d02..b0a39fa3 100644 --- a/core/controller.c +++ b/core/controller.c @@ -1201,7 +1201,10 @@ int adapter_start() if (adapter->ff_core == NULL) { adapter->forward_out_reports = usb_forward_output(i, adapter->joystick); - ginfo("Rumble pass-through to joystick %d (%s)\n", adapter->joystick, ginput_joystick_name(adapter->joystick)); + if (adapter->forward_out_reports) + { + ginfo("Rumble pass-through to joystick %d (%s)\n", adapter->joystick, ginput_joystick_name(adapter->joystick)); + } } if (adapter->ctype == C_TYPE_XONE_PAD && !adapter->status)