diff options
| author | hathach <[email protected]> | 2026-03-06 17:22:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-03-06 17:22:38 +0700 |
| commit | 73cd53129529f2dce70072953bfd50ec9dc6b8ea (patch) | |
| tree | e4fcc75febdc1af7f56973fed061bd2a671f48a2 /src/class/printer/printer.h | |
| parent | 988b18a40a4276eb731c80bc4cec3bf5750523f9 (diff) | |
replace printer_to_hid example with printer_to_cdc example
fix printer GET_DEVICE_ID request weird wIndex (interface high, alt low)
Diffstat (limited to 'src/class/printer/printer.h')
| -rw-r--r-- | src/class/printer/printer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class/printer/printer.h b/src/class/printer/printer.h index b32543077..09d1a8956 100644 --- a/src/class/printer/printer.h +++ b/src/class/printer/printer.h @@ -35,9 +35,9 @@ extern "C" { /// Printer Class Specific Control Request typedef enum { - TUSB_PRINTER_REQUEST_GET_DEVICE_ID = 0x01, ///< Get device ID - TUSB_PRINTER_REQUEST_GET_PORT_STATUS = 0x02, ///< Get port status - TUSB_PRINTER_REQUEST_SOFT_RESET = 0x03, ///< Soft reset + TUSB_PRINTER_REQUEST_GET_DEVICE_ID = 0x00, ///< Get device ID + TUSB_PRINTER_REQUEST_GET_PORT_STATUS = 0x01, ///< Get port status + TUSB_PRINTER_REQUEST_SOFT_RESET = 0x02, ///< Soft reset } tusb_printer_request_type_t; /// Printer Port Status (returned by GET_PORT_STATUS request) |
