joey shelton / Mbed OS OT07_I2C_GUI_Firmware

Dependencies:   SDFileSystem max32630fthr USBDevice

Fork of FTHR_SD_Demo by Maxim Integrated

Revision:
23:aa2407a3b30d
Parent:
22:fe94be11bae0
Child:
24:454dc350bb17
--- a/main.cpp	Thu Mar 21 23:15:26 2019 +0000
+++ b/main.cpp	Fri Mar 22 19:57:15 2019 +0000
@@ -649,12 +649,12 @@
                 if (fp != NULL) 
                 {
                     fprintf(fp,"Device List\r\n");
-                    fprintf(fp,"Device Number, ROM Code\r\n");
+                    fprintf(fp,"Device Number,Address,ROM Code\r\n");
                     for(j=0;j<device_count;j++)
                     {
                         if(device_logged[j])
                         {
-                            fprintf(fp,"%d,0x",j);
+                            fprintf(fp,"%d,0x%02X,0x",j, OT07[j].I2C_address);
                             for(i=7;i>=0;i--)
                             {            
                                 fprintf(fp,"%02X",OT07[j].rom_id[i]); 
@@ -662,8 +662,8 @@
                             fprintf(fp,"\r\n");
                         }
                     } 
-                    
-                    fprintf(fp, "Time(s)");
+                    fprintf(fp, "Temperature Log\r\n");
+                    fprintf(fp, "Time (s)");
                 
                     for(j=0;j<device_count;j++)
                     {