Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

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