Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FastIO FastPWM USBDevice
Diff: USBJoystick/USBJoystick.cpp
- Revision:
- 82:4f6209cb5c33
- Parent:
- 78:1e00b3fa11af
- Child:
- 86:e30a1f60f783
diff -r 5c13849d45a7 -r 4f6209cb5c33 USBJoystick/USBJoystick.cpp --- a/USBJoystick/USBJoystick.cpp Fri Mar 24 05:42:01 2017 +0000 +++ b/USBJoystick/USBJoystick.cpp Thu Apr 13 23:20:28 2017 +0000 @@ -272,7 +272,7 @@ bool USBJoystick::reportConfig( int numOutputs, int unitNo, int plungerZero, int plungerMax, int plungerRlsTime, - bool configured, bool sbxpbx, bool newAccelFeatures, + bool configured, bool sbxpbx, bool newAccelFeatures, bool flashStatusFeature, size_t freeHeapBytes) { HID_REPORT report; @@ -301,7 +301,8 @@ report.data[11] = (configured ? 0x01 : 0x00) | (sbxpbx ? 0x02 : 0x00) - | (newAccelFeatures ? 0x04 : 0x00); + | (newAccelFeatures ? 0x04 : 0x00) + | (flashStatusFeature ? 0x08 : 0x00); // write the free heap space put(12, freeHeapBytes);