Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F103C8T6_WebUSBDFU STM32F103C8T6_USBDFU STM32F103C8T6_USBDFU dfu_usb_stm32f103
Fork of USBDevice_STM32F103 by
Diff: USBDFU/USBDFU.cpp
- Revision:
- 69:8d72761d52fd
- Parent:
- 67:39396cc073f2
--- a/USBDFU/USBDFU.cpp Sun Sep 04 03:13:09 2016 +0000
+++ b/USBDFU/USBDFU.cpp Fri Nov 25 18:26:37 2016 +0000
@@ -31,7 +31,7 @@
}
void USBDFU::attach(Callback<void()> func) {
- if (func != NULL) {
+ if (func) {
detach.attach(func);
} else {
detach.attach(no_op);
