Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

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);