nikita teggi / Mbed 2 deprecated Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nik_BT_ba_update4thJuly17_nikita7july by nikita teggi

Files at this revision

API Documentation at this revision

Comitter:
nidhinvarghese
Date:
Wed May 03 08:49:30 2017 +0000
Parent:
10:aeff3309002a
Child:
12:ab85607bb10a
Commit message:
The code has printf comments Un commented. But still hang is observed after 6-7 attempts on continuos testing of BP

Changed in this revision

ec_bp.cpp Show annotated file Show diff for this revision Revisions of this file
sdcard.cpp Show annotated file Show diff for this revision Revisions of this file
touch_modules.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ec_bp.cpp	Wed May 03 05:32:37 2017 +0000
+++ b/ec_bp.cpp	Wed May 03 08:49:30 2017 +0000
@@ -109,7 +109,7 @@
 //    printf("Device is in SDATAC mode\n");
     
     regRead(REG_ID);
-    printf("DEVICE ID register read from ADS is= 0x%X\n",data1);
+    printf("DEVICE ID register read from ADS is= 0x%X\n",data1);  
     wait(1);
     
     //Since we are using internal 2.42V reference and enable clock on the CLK PIN
--- a/sdcard.cpp	Wed May 03 05:32:37 2017 +0000
+++ b/sdcard.cpp	Wed May 03 08:49:30 2017 +0000
@@ -314,7 +314,7 @@
 
     
     fread(a,sizeof(int), 1,fpecg);
-    snd.printf("\n%d", a[0]);
+    // snd.printf("\n%d", a[0]); Commented May3_2017 (Nidhin)
         if(a[0] > ecgmax)
             {
                 ecgmax=a[0];
@@ -351,7 +351,7 @@
        for(pbp=0; pbp<1664; pbp++)
             {
                 fread(b, sizeof(uint32_t),1, fpppg);
-                snd.printf("\n%d", b[0]);
+                // snd.printf("\n%d", b[0]);   Commented May3_2017 (Nidhin)
                 
                 if((pbp>ecgloc) && (pbp< (ecgloc+350)))
                     {
@@ -419,19 +419,22 @@
     int status = 0 ;
     sprintf(buffer3, "/sd/%d_BP_ECG.csv", pid);
     status = remove(buffer3);
-
+    
+    
     if( status == 0 )
         snd.printf("\nECG file delete : Successful");
     else 
         snd.printf("\nECG file delete : UnSuccessful");
-
+   
+    
     //char buffer1[32] = "";
     status = 0 ;
     sprintf(buffer3, "/sd/%d_BP_PPG.csv", pid);
     status = remove(buffer3);
-
+    
     if( status == 0 )
         snd.printf("\nPPG file delete : Successful");
     else 
         snd.printf("\nPPG file delete : UnSuccessful");
+       
 }
\ No newline at end of file
--- a/touch_modules.cpp	Wed May 03 05:32:37 2017 +0000
+++ b/touch_modules.cpp	Wed May 03 08:49:30 2017 +0000
@@ -14,8 +14,8 @@
  {
             xt = (X_MAX*readTouchX()/TOTAL1);
             yt = (Y_MAX*readTouchY()/TOTAL1);
-            kc.printf("%d\n", xt);
-              kc.printf("%d\n", yt);
+            kc.printf("%d\n", xt); 
+              kc.printf("%d\n", yt); 
  }