tow INA226 devices

Dependencies:   C12832_lcd app-board-logger-v1 INA226 LM75B MMA7660 MSCFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
hirox
Date:
Wed Jun 19 12:05:56 2013 +0000
Parent:
0:a30d570f6e08
Commit message:
add tmp date

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a30d570f6e08 -r a8c8b3ba71ff main.cpp
--- a/main.cpp	Mon Jun 17 14:38:11 2013 +0000
+++ b/main.cpp	Wed Jun 19 12:05:56 2013 +0000
@@ -111,7 +111,7 @@
     lcd.printf("%3.2f  ",r_C1);
     lcd.printf("%3.2f  ",r_rpm);
 
-    debug.printf("%s,%4.3f,%4.3f,%4.3f,%f,%f,%f,%f,%f\r\n",strTimeMsg,xyz[0],xyz[1],xyz[2],r_V1,r_C1,r_V2,r_C2,r_rpm);
+    debug.printf("%s,%4.3f,%4.3f,%4.3f,%f,%f,%f,%f,%f,%f\r\n",strTimeMsg,xyz[0],xyz[1],xyz[2],r_V1,r_C1,r_V2,r_C2,r_rpm,tmp.read());
        
 }
 
@@ -203,7 +203,7 @@
            ctTime = time(NULL) + 32400;
            strftime(strTimeMsg,16,"%m/%d %H:%M:%S",localtime(&ctTime));
         
-           fprintf(fp,"%s,%4.3f,%4.3f,%4.3f,%f,%f,%f,%f,%f\r\n",strTimeMsg,xyz[0],xyz[1],xyz[2],r_V1,r_C1,r_V2,r_C2,r_rpm);
+           fprintf(fp,"%s,%4.3f,%4.3f,%4.3f,%f,%f,%f,%f,%f,%f\r\n",strTimeMsg,xyz[0],xyz[1],xyz[2],r_V1,r_C1,r_V2,r_C2,r_rpm,tmp.read());
            updateLCD();
            
            wait(1);