From 641c674f2a537732588a47e103bc2a315e86d526 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 15 Aug 2018 19:53:28 -0700 Subject: [PATCH] Turned off debug messages --- src/joystick/hidapi/SDL_hidapi_switch.c | 1 + src/joystick/hidapi/SDL_hidapijoystick.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index c37ba8fc59335..79628d7027a79 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -871,6 +871,7 @@ HIDAPI_DriverSwitch_Update(SDL_Joystick *joystick, hid_device *dev, void *contex HIDAPI_DriverSwitch_Rumble(joystick, dev, context, 0, 0, 0); } } + return (size >= 0); } diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index 6d52224035754..b339ae8cb2b0d 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -605,7 +605,6 @@ HIDAPI_AddDevice(struct hid_device_info *info) return; } -#define DEBUG_HIDAPI #ifdef DEBUG_HIDAPI SDL_Log("Adding HIDAPI device '%s' interface %d, usage page 0x%.4x, usage 0x%.4x\n", device->name, device->interface_number, device->usage_page, device->usage); #endif