diff options
| author | hathach <[email protected]> | 2013-02-07 19:42:41 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-07 19:42:41 +0700 |
| commit | ef0e105da669c7a3d8ae781dac11a37d52c63fa0 (patch) | |
| tree | 39235b146a299e7f09f4f0c6d48b74295978209e /tinyusb | |
| parent | 89f74d22a706fa86c5cf66a3b9e97958465e4477 (diff) | |
rename addr variable to avoid conflict with static variable
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/host/usbh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 50501fc9f..b9dc8a2ae 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -228,12 +228,12 @@ tusb_error_t usbh_init(void) //--------------------------------------------------------------------+ static inline uint8_t get_new_address(void) { - uint8_t new_addr; - for (new_addr=1; new_addr <= TUSB_CFG_HOST_DEVICE_MAX; new_addr++) + uint8_t addr; + for (addr=1; addr <= TUSB_CFG_HOST_DEVICE_MAX; addr++) { - if (usbh_device_info_pool[new_addr].status == TUSB_DEVICE_STATUS_UNPLUG) + if (usbh_device_info_pool[addr].status == TUSB_DEVICE_STATUS_UNPLUG) break; } - return new_addr; + return addr; } |
