add memory debug

This commit is contained in:
Steven Dan
2026-01-31 16:08:36 +08:00
parent 57f79628ba
commit 33377ff0fb
3 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
#include "xud_std_requests.h"
#include "xua_hid.h"
#include "xua_hid_report.h"
#include "user_hid.h"
#define DEBUG_UNIT HID_XC
#define DEBUG_PRINT_ENABLE_HID_XC 0
@@ -42,6 +43,10 @@ XUD_Result_t HidInterfaceClassRequests(
buffer[0] = 0x1;
process_read_params(&buffer[1]);
#if DEBUG_MEMORY_LOG_ENABLED
ret_len = 65;
UserReadHIDLog(&buffer[1]);
#endif
#if 0
debug_printf("%d:\n", ret_len);
for(int i=0; i < ret_len; i++)