Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h
Dependents: DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory
Fork of USBHOST by
Diff: USBHost/USBDeviceConnected.h
- Revision:
- 8:3e7a33f81048
- Parent:
- 1:ab240722d7ef
diff -r 7ebd364a6be5 -r 3e7a33f81048 USBHost/USBDeviceConnected.h --- a/USBHost/USBDeviceConnected.h Mon Apr 30 05:37:24 2018 +0000 +++ b/USBHost/USBDeviceConnected.h Sat Jan 04 23:30:59 2020 +0000 @@ -106,7 +106,7 @@ template<typename T> inline void onDisconnect(uint8_t intf_nb, T* tptr, void (T::*mptr)(void)) { if ((mptr != NULL) && (tptr != NULL)) { - intf[intf_nb].detach.attach(tptr, mptr); + intf[intf_nb].detach = callback(tptr, mptr); } } @@ -118,7 +118,7 @@ */ inline void onDisconnect(uint8_t intf_nb, void (*fn)(void)) { if (fn != NULL) { - intf[intf_nb].detach.attach(fn); + intf[intf_nb].detach = fn; } }