Przeglądaj źródła

HPMicro: update usb_dc_hpm.c

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
Zhihong Chen 1 rok temu
rodzic
commit
07c6c296ed
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      port/hpm/usb_dc_hpm.c

+ 1 - 1
port/hpm/usb_dc_hpm.c

@@ -127,7 +127,7 @@ int usbd_set_remote_wakeup(uint8_t busid)
         return -1;
     }
 
-    usb_force_port_resume(g_hpm_udc[busid].handle->regs);
+    usb_force_port_resume(ptr);
     while (ptr->PORTSC1 & USB_PORTSC1_FPR_MASK) {
     }