Skip to content

Commit

Permalink
Change device class/subclass/protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Apr 21, 2024
1 parent c65e777 commit 5f8ed3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pappl/printer-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,15 +964,15 @@ enable_usb_printer(
return (false);

snprintf(filename, sizeof(filename), "%s/bDeviceClass", gadget_dir);
if (!create_string_file(printer, filename, "0xEF\n"))
if (!create_string_file(printer, filename, "0x00\n"))
return (false);

snprintf(filename, sizeof(filename), "%s/bDeviceSubClass", gadget_dir);
if (!create_string_file(printer, filename, "0x02\n"))
if (!create_string_file(printer, filename, "0x00\n"))
return (false);

snprintf(filename, sizeof(filename), "%s/bDeviceProtocol", gadget_dir);
if (!create_string_file(printer, filename, "0x01\n"))
if (!create_string_file(printer, filename, "0x00\n"))
return (false);

snprintf(filename, sizeof(filename), "%s/bcdUSB", gadget_dir);
Expand Down

0 comments on commit 5f8ed3f

Please sign in to comment.