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.
Diff: Gamepad2/Gamepad.cpp
- Revision:
- 19:08862f49cd9e
- Parent:
- 4:9b7ea5528a5c
- Child:
- 30:08cc4ec58d07
diff -r 204cd747b54a -r 08862f49cd9e Gamepad2/Gamepad.cpp
--- a/Gamepad2/Gamepad.cpp	Thu May 21 22:59:59 2020 +0000
+++ b/Gamepad2/Gamepad.cpp	Fri May 22 20:10:00 2020 +0000
@@ -420,6 +420,9 @@
 void Gamepad::write_u16(unsigned short val)
 {
     if (val > 65535) {
+        #ifdef CSV
+        printf("/nERROR OUTPUT VALUE= %u",val);
+        #endif
         val = 65535;
     }
     dac->write_u16(val);