created separate function for hex to char
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
Diff: bp.cpp
- Revision:
- 69:128e3b467820
- Parent:
- 68:41da0a3ba038
- Child:
- 72:1f990fa8c516
--- a/bp.cpp Tue Nov 21 12:47:03 2017 +0000 +++ b/bp.cpp Thu Nov 23 12:11:46 2017 +0000 @@ -108,10 +108,12 @@ // Loading values of Length , PID, DID, sampling frequency, number of samples, calculated data. BLEMsg_info_bp.device_id = eprom_read_8(12); // Device ID fixed // changed on 11/8/17 nikita //BLEMsg_info_bp.patient_id = (uint32_t)pid; // Patient ID - bpr.printf("user pid in bp = %s\n",user_pid); - get_userpid(BLEMsg_info_bp.patient_id,user_pid); - bpr.printf("BP pid = %s\n",BLEMsg_info_bp.patient_id); - ascii_to_hex((const char *)BLEMsg_info_bp.patient_id, strlen(BLEMsg_info_bp.patient_id)); + + memcpy(BLEMsg_info_bp.patient_id,get_userpid(),sizeof(BLEMsg_info_bp.patient_id)); + bpr.printf("BP pid = %s\n",BLEMsg_info_bp.patient_id); + + //ascii_to_hex((const char *)BLEMsg_info_bp.patient_id, strlen(BLEMsg_info_bp.patient_id)); + //bpr.printf("BP pid = %10x\n",BLEMsg_info_bp.patient_id); BLEMsg_info_bp.sampling_freq = 500; // sampling frrquency BLEMsg_info_bp.length = 10774; //Total length of data in bytes 22 B+10752 B