USB Device library for the STM32F103 with USB Device Firmware Upgrade (DFU) runtime support.
Dependents: STM32F103C8T6_WebUSBDFU STM32F103C8T6_USBDFU STM32F103C8T6_USBDFU dfu_usb_stm32f103
Fork of USBDevice_STM32F103 by
Diff: USBDFU/WebUSBDFU.cpp
- Revision:
- 70:e410de636542
- Parent:
- 68:c190028858f9
- Parent:
- 69:8d72761d52fd
diff -r c190028858f9 -r e410de636542 USBDFU/WebUSBDFU.cpp --- a/USBDFU/WebUSBDFU.cpp Sun Sep 04 09:54:47 2016 +0000 +++ b/USBDFU/WebUSBDFU.cpp Fri Nov 25 18:31:08 2016 +0000 @@ -37,7 +37,7 @@ } void WebUSBDFU::attach(Callback<void()> func) { - if (func != NULL) { + if (func) { detach.attach(func); } else { detach.attach(no_op);