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:
- 15:208b146151ba
- Parent:
- 14:f5c62d30c6fc
- Child:
- 17:22a87e12fb3a
--- a/ecgg.cpp Thu Jun 01 09:24:45 2017 +0000 +++ b/ecgg.cpp Mon Jun 05 09:14:44 2017 +0000 @@ -41,8 +41,8 @@ ptr_time_info_ecg = localtime(&epoch_time_ecg); // Structure accepts the time in local format from "time_t" type. //BELOW LINE IS TO CHECK Date and TIME - pc.printf("Time is %d: %d: %d\n", (*ptr_time_info_ecg).tm_hour, (*ptr_time_info_ecg).tm_min, (*ptr_time_info_ecg).tm_sec); - pc.printf("Date is %d:%d:%d\n", (*ptr_time_info_ecg).tm_mday, (*ptr_time_info_ecg).tm_mon+1, (*ptr_time_info_ecg).tm_year-100); + //pc.printf("Time is %d: %d: %d\n", (*ptr_time_info_ecg).tm_hour, (*ptr_time_info_ecg).tm_min, (*ptr_time_info_ecg).tm_sec); + //pc.printf("Date is %d:%d:%d\n", (*ptr_time_info_ecg).tm_mday, (*ptr_time_info_ecg).tm_mon+1, (*ptr_time_info_ecg).tm_year-100); //Copying from one structure to the other using variables DateTime_info_ecg.hour = (uint8_t)(*ptr_time_info_ecg).tm_hour; @@ -64,8 +64,8 @@ //Checking if the structure has these values - pc.printf("Time 2 is %d:%d:%d\n", DateTime_info_ecg.hour, DateTime_info_ecg.mins, DateTime_info_ecg.sec); - pc.printf("\t Date is %d:%d:%d\n",DateTime_info_ecg.date, DateTime_info_ecg.month, DateTime_info_ecg.year); + //pc.printf("Time 2 is %d:%d:%d\n", DateTime_info_ecg.hour, DateTime_info_ecg.mins, DateTime_info_ecg.sec); + //pc.printf("\t Date is %d:%d:%d\n",DateTime_info_ecg.date, DateTime_info_ecg.month, DateTime_info_ecg.year); //Loading values to of Test type @@ -74,7 +74,7 @@ BLEMsg_info_ecg.test_type = test_type_info_ecg; //Check if 00 is getting printed - pc.printf("Test Type is : %d\n", test_type_info_ecg); + //pc.printf("Test Type is : %d\n", test_type_info_ecg); // Loading values of Length , PID, DID, sampling frequency, number of samples, calculated data. @@ -97,8 +97,8 @@ - int concatenate_value2 = 0; - int *ecg_ptr; // Added 1/6/2017 Nidhin + int32_t concatenate_value2 = 0; // ORG. "int concatenate_value2 = 0;" Nidhin 1/6/17 + int32_t *ecg_ptr; // Added 1/6/2017 Nidhin ecg_ptr = &concatenate_value2; // Pointer to pass for ECG write into SD card Nidhin 1/6/2017 // int32_t sample_sum; // static int32_t avg[1500]; @@ -134,7 +134,7 @@ sd_ecgwrite(ecg_ptr); // REPLACED Nidhin 1/6/2017 ecg_buf[i] = concatenate_value2; - //pc.printf( "%d\n", concatenate_value2); COMMENTED Nidhin 1/6/2017 + pc.printf( "%d\n", concatenate_value2); //COMMENTED Nidhin 1/6/2017 } //sd_close(); // closing the file COMMENTED Nidhin 1/6/2017