diff options
| author | hathach <[email protected]> | 2019-03-30 17:38:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-30 17:38:00 +0700 |
| commit | f3a954e7deaa33db5fed8e807cd146e65aaeb104 (patch) | |
| tree | 1ef4d80c16d4829670e218279f46be5e2c5aba1e /src/device/usbd_auto_desc.c | |
| parent | ee6ed084f48933ec884ceb5cdce2b265df37d78a (diff) | |
self powered and remote wakeup support are from configuration descriptor attribute
Diffstat (limited to 'src/device/usbd_auto_desc.c')
| -rw-r--r-- | src/device/usbd_auto_desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd_auto_desc.c b/src/device/usbd_auto_desc.c index 8272ea5a8..e418cd23c 100644 --- a/src/device/usbd_auto_desc.c +++ b/src/device/usbd_auto_desc.c @@ -342,7 +342,7 @@ desc_auto_cfg_t const _desc_auto_config_struct = .bConfigurationValue = 1, .iConfiguration = 0x00, - .bmAttributes = TUSB_DESC_CONFIG_ATT_BUS_POWER, + .bmAttributes = TU_BIT(7) | TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, .bMaxPower = TUSB_DESC_CONFIG_POWER_MA(100) }, |
