From e863c99a6fd50aee7cea2bcf3b86ce0cda14cf95 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 10 Dec 2018 23:15:53 +0700 Subject: fix msc host --- src/host/ehci/ehci.c | 6 +++--- src/host/usbh.c | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'src/host') diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c index bfdc4e4f7..fbc110b83 100644 --- a/src/host/ehci/ehci.c +++ b/src/host/ehci/ehci.c @@ -829,13 +829,13 @@ static inline ehci_qtd_t* get_control_qtds(uint8_t dev_addr) static inline ehci_qhd_t* qhd_find_free (uint8_t dev_addr) { - uint8_t relative_address = dev_addr-1; + uint8_t relative_addr = dev_addr-1; uint8_t index=0; - while( index