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.
Fork of MPU6050 by
Revision 3:8195444b5c0e, committed 2016-11-07
- Comitter:
- amq
- Date:
- Mon Nov 07 10:20:37 2016 +0000
- Parent:
- 2:429ef569d7c4
- Commit message:
- Added carriage returns
Changed in this revision
| MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/MPU6050.cpp	Mon Nov 07 09:58:25 2016 +0000
+++ b/MPU6050.cpp	Mon Nov 07 10:20:37 2016 +0000
@@ -79,7 +79,7 @@
 {
 
 #ifdef useDebugSerial
-    debugSerial.printf("MPU6050::initialize start\n");
+    debugSerial.printf("MPU6050::initialize start\r\n");
 #endif
 
     setClockSource(MPU6050_CLOCK_PLL_XGYRO);
@@ -88,7 +88,7 @@
     setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
 
 #ifdef useDebugSerial
-    debugSerial.printf("MPU6050::initialize end\n");
+    debugSerial.printf("MPU6050::initialize end\r\n");
 #endif
 }
 
@@ -99,11 +99,11 @@
 bool MPU6050::testConnection()
 {
 #ifdef useDebugSerial
-    debugSerial.printf("MPU6050::testConnection start\n");
+    debugSerial.printf("MPU6050::testConnection start\r\n");
 #endif
     uint8_t deviceId = getDeviceID();
 #ifdef useDebugSerial
-    debugSerial.printf("DeviceId = %d\n",deviceId);
+    debugSerial.printf("DeviceId = %d\r\n",deviceId);
 #endif
     return deviceId == 0x34;
 }
    