
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: bp.cpp
- Revision:
- 31:0f67acfc6236
- Parent:
- 22:ffa88619551d
- Child:
- 36:00d96aa14658
--- a/bp.cpp Sat Jul 08 12:06:16 2017 +0000 +++ b/bp.cpp Sat Jul 15 05:39:45 2017 +0000 @@ -270,14 +270,21 @@ BLEMsg_info_bp.cal_data.cal_sbp_dummy = (uint16_t) SBP; BLEMsg_info_bp.cal_data.cal_dbp_OTtyp = (uint16_t) DBP; - + if((SBP>190 || SBP<70) && (DBP>100 || DBP<40)) // checking for range below and above and then displaying error + { + screen_bp_error(); // checking for error out of range- nikita 10-7-17 + + } - create_single_BPfile(pid); // Copy ECG and PPG data to BP file - structure_file(ptr_BLEMsg_info_bp, pid); // Copy BP structure to main file - bpfile_mainfile(pid); + else + { - screen_bp1(SBP,DBP); - + create_single_BPfile(pid); // Copy ECG and PPG data to BP file + structure_file(ptr_BLEMsg_info_bp, pid); // Copy BP structure to main file + bpfile_mainfile(pid); + + screen_bp1(SBP,DBP); + } } //Added Nidhin 16/6/17 else //Added Nidhin 16/6/17