From b7411958af99e51335448ca52b5a6ca75effdbaf Mon Sep 17 00:00:00 2001 From: rmschooley <rmschooley@att.net> Date: Mon, 26 May 2025 22:44:08 -0500 Subject: [PATCH] Update hid_keyboard.go Added attribute to remove unnecessary and potentially confusing out endpoint descriptor. --- internal/usbgadget/hid_keyboard.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/usbgadget/hid_keyboard.go b/internal/usbgadget/hid_keyboard.go index 12b0de9..e5d3a2a 100644 --- a/internal/usbgadget/hid_keyboard.go +++ b/internal/usbgadget/hid_keyboard.go @@ -14,9 +14,10 @@ var keyboardConfig = gadgetConfigItem{ path: []string{"functions", "hid.usb0"}, configPath: []string{"hid.usb0"}, attrs: gadgetAttributes{ - "protocol": "1", - "subclass": "1", - "report_length": "8", + "protocol": "1", + "subclass": "1", + "report_length": "8", + "no_out_endpoint": "1", }, reportDesc: keyboardReportDesc, }