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:
- 30:08cc4ec58d07
- Parent:
- 19:08862f49cd9e
--- a/Gamepad2/Gamepad.cpp	Mon May 25 20:00:31 2020 +0000
+++ b/Gamepad2/Gamepad.cpp	Tue May 26 10:17:47 2020 +0000
@@ -420,7 +420,7 @@
 void Gamepad::write_u16(unsigned short val)
 {
     if (val > 65535) {
-        #ifdef CSV
+        #ifdef CSV //used for error detection in CSV file
         printf("/nERROR OUTPUT VALUE= %u",val);
         #endif
         val = 65535;
@@ -428,8 +428,6 @@
     dac->write_u16(val);
 }
 
-
-
 void Gamepad::play_next_note()
 {
     // _note is the note index to play