Skip to content

Commit

Permalink
Fix message with incorrect joystick (id=-1, name=null).
Browse files Browse the repository at this point in the history
  • Loading branch information
matlo committed May 3, 2020
1 parent 24fbf88 commit ec93460
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec93460

Please sign in to comment.