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:
- 78:1e00b3fa11af
- Parent:
- 77:0b96f6867312
- Child:
- 82:4f6209cb5c33
--- a/USBJoystick/USBJoystick.cpp Fri Mar 17 22:02:08 2017 +0000 +++ b/USBJoystick/USBJoystick.cpp Sun Mar 19 05:30:53 2017 +0000 @@ -272,8 +272,7 @@ bool USBJoystick::reportConfig( int numOutputs, int unitNo, int plungerZero, int plungerMax, int plungerRlsTime, - bool configured, - bool sbxpbx, + bool configured, bool sbxpbx, bool newAccelFeatures, size_t freeHeapBytes) { HID_REPORT report; @@ -301,7 +300,8 @@ // 0x02 -> SBX/PBX protocol extensions supported report.data[11] = (configured ? 0x01 : 0x00) - | (sbxpbx ? 0x02 : 0x00); + | (sbxpbx ? 0x02 : 0x00) + | (newAccelFeatures ? 0x04 : 0x00); // write the free heap space put(12, freeHeapBytes);