Los Putacos / Mbed OS WearableDevice_Nucleo_New

Dependencies:   MPU9250_SPI

Fork of WearableDevice_Nucleo by Los Putacos

Revision:
25:86137c182a17
Parent:
24:eed68c95160c
Child:
26:4bc56ce08d15
--- a/event.cpp	Fri Oct 27 09:59:32 2017 +0000
+++ b/event.cpp	Fri Oct 27 23:49:44 2017 +0000
@@ -20,8 +20,9 @@
 {
     imu.read_acc();
 
-    PC.printf("Time: %d:\t%d,%10.3f,%10.3f,%10.3f\n",
-              time_stamp.read_ms(),
+    //PC.printf("Time: %d ms:\t%d,%10.3f,%10.3f,%10.3f\n",
+    fprintf(fp, "Time: %d us:\t%d,%10.3f,%10.3f,%10.3f\n",
+              time_stamp.read_us(),
               micro.read_u16(),
               imu.accelerometer_data[0],
               imu.accelerometer_data[1],