diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-03 17:25:36 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-03 17:25:36 +0000 |
commit | f519bbe55f6917d86af6bb4946dfef073175d8f3 (patch) | |
tree | ee199b6e144f126cc2811bae4cee257414da4457 /app | |
parent | f10c1497babaf3010def44a999092a4b55e84460 (diff) | |
download | clock-f519bbe55f6917d86af6bb4946dfef073175d8f3.tar.gz clock-f519bbe55f6917d86af6bb4946dfef073175d8f3.tar.bz2 clock-f519bbe55f6917d86af6bb4946dfef073175d8f3.zip |
cosmetic changes
Diffstat (limited to 'app')
-rw-r--r-- | app/dfu.c | 2 | ||||
-rw-r--r-- | app/usb.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -60,8 +60,6 @@ dfu_control_request (usbd_device *usbd_dev, struct usb_setup_data *req, (void) len; (void) usbd_dev; - printf ("dfu_control_request %02x %02x\n", req->bmRequestType, req->bRequest); - if ((req->bmRequestType & 0x7F) != 0x21) { return 0; /* Only accept class request. */ } @@ -60,6 +60,7 @@ static const struct usb_config_descriptor config = { .bMaxPower = 0x32, .interface = ifaces, }; +#define N_USB_STRINGS (sizeof(usb_strings)/sizeof(usb_strings[0])) static const char *usb_strings[] = { VENDOR_NAME, /*1*/ @@ -112,7 +113,7 @@ void usb_init (void) &dev, &config, usb_strings, - 6, + N_USB_STRINGS, usbd_control_buffer, sizeof (usbd_control_buffer)); |