From 0363be935895ba8d746703fb57c74856b7a2c3d4 Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Fri, 17 Nov 2017 09:13:37 +0100 Subject: [PATCH] fix: USB Power requirements * correctly indicate the maximum current drawn from the USB bus --- common/usb_cdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/usb_cdc.c b/common/usb_cdc.c index 91a63cf3..3d17f81c 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -77,8 +77,8 @@ static const char cfgDescriptor[] = { 0x02, // CbNumInterfaces 0x01, // CbConfigurationValue 0x00, // CiConfiguration - 0xC0, // CbmAttributes 0xA0 - 0xFA, // CMaxPower + 0xC0, // CbmAttributes (Self Powered - for those with a battery) + 0x4B, // CMaxPower (150mA max current drawn from bus without battery) /* Interface 0 Descriptor: Communication Class Interface */ 0x09, // bLength -- 2.39.5