From f519bbe55f6917d86af6bb4946dfef073175d8f3 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Mar 2021 17:25:36 +0000 Subject: cosmetic changes --- app/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/usb.c') diff --git a/app/usb.c b/app/usb.c index ea432ef..fc9e6ea 100644 --- a/app/usb.c +++ b/app/usb.c @@ -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)); -- cgit v1.2.3