fork
Fork of USBDevice_STM32F103 by
Diff: USBDFU/WebUSBDFU.cpp
- Revision:
- 69:8d72761d52fd
- Parent:
- 67:39396cc073f2
- Child:
- 70:e410de636542
--- a/USBDFU/WebUSBDFU.cpp Sun Sep 04 03:13:09 2016 +0000 +++ b/USBDFU/WebUSBDFU.cpp Fri Nov 25 18:26:37 2016 +0000 @@ -36,7 +36,7 @@ } void WebUSBDFU::attach(Callback<void()> func) { - if (func != NULL) { + if (func) { detach.attach(func); } else { detach.attach(no_op);