diff options
| author | sakumisu <[email protected]> | 2022-08-19 23:32:10 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-08-19 23:34:35 +0800 |
| commit | 523d33506d35142a5effeffe1dafad13e356e096 (patch) | |
| tree | 608d5cb017313445edaa78276a41505c65680286 /class/printer/usbd_printer.c | |
| parent | 607a05716273dacb46e2e56c680acbb9e6dd9607 (diff) | |
give up class register
Diffstat (limited to 'class/printer/usbd_printer.c')
| -rw-r--r-- | class/printer/usbd_printer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/class/printer/usbd_printer.c b/class/printer/usbd_printer.c index 689869ee..24b8fa88 100644 --- a/class/printer/usbd_printer.c +++ b/class/printer/usbd_printer.c @@ -48,13 +48,6 @@ static void printer_notify_handler(uint8_t event, void *arg) void usbd_printer_add_interface(usbd_class_t *devclass, usbd_interface_t *intf) { - static usbd_class_t *last_class = NULL; - - if (last_class != devclass) { - last_class = devclass; - usbd_class_register(devclass); - } - intf->class_handler = printer_class_request_handler; intf->custom_handler = NULL; intf->vendor_handler = NULL; |
