
Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
Diff: glc.cpp
- Revision:
- 20:7c64e6ecad76
- Parent:
- 19:1650bbc923cc
- Child:
- 22:ffa88619551d
--- a/glc.cpp Fri Jun 09 17:12:21 2017 +0000 +++ b/glc.cpp Sat Jun 17 09:36:18 2017 +0000 @@ -180,6 +180,7 @@ //#include "touch_modules.h" #include "rtc.h" #include "sdcard.h" +#include "eeprom_pgm.h" // Nidhin 12/6/17 #include "struct.h" //Nidhin 31/5/2017 //#include "test_type.h" //Nidhin 31/5/2017 @@ -217,6 +218,7 @@ uint32_t glcraw[2]; // Nidhin 31/5/2017 uint8_t chk_glc_data = 0; +uint16_t glc_testtype; // Nidhin 12/6/2017 Serial ble(PTC4,PTC3); @@ -429,8 +431,9 @@ sd_glcwrite(glcraw, pid); //Writes the raw data into GLC file - //Results Stored to Bluetooth structure - BLEMsg_info_glc.cal_data.cal_sbp_dummy = 0; + //Results Stored to Bluetooth structure + glc_testtype = eprom_read(2); // Reads the test type (before meal = 0 / after meal = 1 OR Random = 2 from location 2 of the EEPROM) Nidhin 12/6/17 + BLEMsg_info_glc.cal_data.cal_sbp_dummy = (uint16_t) glc_testtype; // Data stored into structure BLEMsg_info_glc.cal_data.cal_dbp_OTtyp = (uint16_t) mgdll; //To be checked for reliable results structure_file(ptr_BLEMsg_info_glc, pid); // Copy the structure into the GLC file