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.
Dependencies: SDFileSystem max32630fthr USBDevice
Fork of FTHR_SD_Demo by
Diff: main.cpp
- 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++)
{
