DEBUG_MEMORY_LOG_ENABLED log
This commit is contained in:
@@ -31,7 +31,7 @@ XUD_Result_t HidInterfaceClassRequests(
|
||||
#endif
|
||||
USB_SetupPacket_t &sp )
|
||||
{
|
||||
#if ((USE_EX3D == 1) || (EQ_EN == 1))
|
||||
#if ((USE_EX3D == 1) || (EQ_EN == 1) || (DEBUG_MEMORY_LOG_ENABLED == 1) )
|
||||
unsigned datalength;
|
||||
unsigned char buffer[65] = {0};
|
||||
#endif
|
||||
@@ -41,8 +41,10 @@ XUD_Result_t HidInterfaceClassRequests(
|
||||
case HID_GET_REPORT:
|
||||
unsigned ret_len = 65;
|
||||
|
||||
#if ((USE_EX3D == 1) || (EQ_EN == 1))
|
||||
buffer[0] = 0x1;
|
||||
process_read_params(&buffer[1]);
|
||||
#endif
|
||||
#if DEBUG_MEMORY_LOG_ENABLED
|
||||
ret_len = 65;
|
||||
UserReadHIDLog(&buffer[1]);
|
||||
@@ -64,7 +66,7 @@ XUD_Result_t HidInterfaceClassRequests(
|
||||
case HID_GET_PROTOCOL:
|
||||
/* Do nothing - i.e. STALL */
|
||||
break;
|
||||
|
||||
|
||||
#if ((USE_EX3D == 1) || (EQ_EN == 1))
|
||||
case HID_SET_REPORT:
|
||||
result = XUD_GetBuffer(c_ep0_out, (buffer, unsigned char[]), datalength);
|
||||
@@ -97,7 +99,7 @@ XUD_Result_t HidInterfaceClassRequests(
|
||||
|
||||
case HID_SET_PROTOCOL:
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user