USB device stack that isn't working

Dependents:   SDVXcontroller

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
lukeoftheaura
Date:
Sat Jan 13 20:10:33 2018 +0000
Parent:
72:330159d8553d
Commit message:
]]]]]]]]]]]]]]]]]]]]]]]]]]; ;

Changed in this revision

USBHID/USBKeyboard.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 330159d8553d -r 6fb59df5258d USBHID/USBKeyboard.cpp
--- a/USBHID/USBKeyboard.cpp	Fri Jan 12 19:11:17 2018 +0000
+++ b/USBHID/USBKeyboard.cpp	Sat Jan 13 20:10:33 2018 +0000
@@ -481,7 +481,10 @@
     report.data[7] = 0;
     report.data[8] = 0;
     
-    return send(&report);
+    if (!send(&report)) {
+    return false;
+    }
+    return true;
 }
 
 bool USBKeyboard::keyRelease() {