USB device stack that isn't working
Fork of USBDevice by
Diff: USBHID/USBKeyboard.cpp
- Revision:
- 73:6fb59df5258d
- Parent:
- 72:330159d8553d
--- 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() {