export test

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by nikita teggi

Revision:
24:d992ee8369f4
Parent:
22:ffa88619551d
Child:
29:7edc76b15e3d
--- a/main.cpp	Fri Jun 23 07:26:55 2017 +0000
+++ b/main.cpp	Sat Jun 24 10:24:32 2017 +0000
@@ -12,11 +12,12 @@
 #include "eeprom_pgm.h"
 #include "struct.h"
 #include "battery.h" 
+
 Serial gc(USBTX, USBRX);
 DigitalIn q1(PTB11);
 DigitalIn q(PTB8);
 DigitalIn BT(PTA5);                     //bluetooth status pin
-
+  
 uint8_t touch(uint8_t state);           // touch state
 uint8_t display(uint8_t state1);       //  display state
 int32_t pid=0;                // patient ID
@@ -324,7 +325,7 @@
                 state1=0;
                 screen_glc_2();
                  state=6;
-                 eprom_write(3,0);
+                 eprom_write_8(30,0);
               //  gc.printf("%d", state);
               nstate=state;         //////////////
                EnableTouch();
@@ -347,7 +348,7 @@
                          ecg_flag=1;
                          }   
                 state=6;
-                eprom_write(3,1);
+                eprom_write_8(30,1);
                 nstate=state;
                 screen_ecg_bp();
                 EnableTouch();
@@ -371,7 +372,7 @@
                 state1=0;
                // wait(1);
                 state=6;
-                eprom_write(3,2);
+                eprom_write_8(30,2);
                 nstate=state;
                 EnableTouch();
                  break;