summaryrefslogtreecommitdiff
path: root/src/class/printer/printer.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-06 17:22:38 +0700
committerhathach <[email protected]>2026-03-06 17:22:38 +0700
commit73cd53129529f2dce70072953bfd50ec9dc6b8ea (patch)
treee4fcc75febdc1af7f56973fed061bd2a671f48a2 /src/class/printer/printer.h
parent988b18a40a4276eb731c80bc4cec3bf5750523f9 (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.h6
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)