diff options
| author | hathach <[email protected]> | 2012-11-29 10:41:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-11-29 10:41:33 +0700 |
| commit | 8cd811e2a9760afc1702ae0a872e999517bfcb40 (patch) | |
| tree | 09ec2245a515fad540e60ebcf1da915de99e99fd /tinyusb/class | |
| parent | 851f5bfd06c837626ddf06f1c326970763d07010 (diff) | |
start to work with doxygen
fix mem_size/mem_base usage with device rom driver
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/class/hid.c b/tinyusb/class/hid.c index 21871d284..50cf2ac25 100644 --- a/tinyusb/class/hid.c +++ b/tinyusb/class/hid.c @@ -210,7 +210,7 @@ ErrorCode_t usb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *con ASSERT_STATUS( USBD_API->hid->init(hUsb, &hid_param) ); /* update memory variables */ - *mem_base = hid_param.mem_base; + *mem_base += (*mem_size - hid_param.mem_size); *mem_size = hid_param.mem_size; return LPC_OK; |
