Lars Knudsen / USBDevice_WebUSB

Fork of USBDevice_STM32F103 by Devan Lai

Files at this revision

API Documentation at this revision

Comitter:
devanlai
Date:
Fri Nov 25 18:31:08 2016 +0000
Parent:
68:c190028858f9
Parent:
69:8d72761d52fd
Child:
71:4e9a69384cac
Commit message:
Merge callback fix

Changed in this revision

USBDFU/WebUSBDFU.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBDFU/USBDFU.cpp	Sun Sep 04 09:54:47 2016 +0000
+++ b/USBDFU/USBDFU.cpp	Fri Nov 25 18:31:08 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);
--- 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);