From 9f98e13342b2b4fb4bfe19da9da3e0e8df7bc9e2 Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Mon, 14 Oct 2019 16:42:34 +0100 Subject: [PATCH] Use the HID_CONTROLS pre-processor symbol consistently. --- lib_xua/src/core/endpoint0/xua_endpoint0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/core/endpoint0/xua_endpoint0.c b/lib_xua/src/core/endpoint0/xua_endpoint0.c index c59886c6..7b42909b 100755 --- a/lib_xua/src/core/endpoint0/xua_endpoint0.c +++ b/lib_xua/src/core/endpoint0/xua_endpoint0.c @@ -60,7 +60,7 @@ extern void device_reboot(void); #endif -#if HID_CONTROLS +#if( 0 < HID_CONTROLS ) #include "xua_hid.h" #endif @@ -993,7 +993,7 @@ void XUA_Endpoint0_lite_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend } } #endif -#if HID_CONTROLS +#if( 0 < HID_CONTROLS ) if (interfaceNum == INTERFACE_NUMBER_HID) { result = HidInterfaceClassRequests(ep0_out, ep0_in, &sp);