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: ecgg.cpp
- Revision:
- 39:69b09bd87502
- Parent:
- 36:00d96aa14658
- Child:
- 40:f7f351699288
diff -r 7238f3531ce9 -r 69b09bd87502 ecgg.cpp --- a/ecgg.cpp Wed Aug 02 06:58:57 2017 +0000 +++ b/ecgg.cpp Fri Aug 11 12:19:25 2017 +0000 @@ -12,7 +12,7 @@ #include "rtc.h" #include "sdcard.h" #include "ec_bp.h" - +#include "eeprom_pgm.h" #include "struct.h" // Added on 31/5/17_Nidhin //#include "test_type.h" //Added on 31/5/17_Nidhin FILE *fpeecg1; // FILE pointer to ECG file @@ -81,7 +81,7 @@ // Loading values of Length , PID, DID, sampling frequency, number of samples, calculated data. - BLEMsg_info_ecg.device_id = 01; // Device ID fixed + BLEMsg_info_ecg.device_id = eprom_read_8(12); // Device ID fixed BLEMsg_info_ecg.patient_id = (uint32_t)pid; // Patient ID BLEMsg_info_ecg.sampling_freq = 500; // sampling frrquency BLEMsg_info_ecg.length = 8022; //Total length of data in bytes 22 B+ 4000 data @@ -231,6 +231,7 @@ if(HR_avg>100 || HR_avg<40) { + delete_subfiles(pid); // added on 11/8/17 nikita return 1; // out of range condition returning 1 //nikita//10/7 } else