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: bt.cpp
- Revision:
- 54:f2a413d5dffd
- Parent:
- 52:7d9ff7781bdc
- Child:
- 56:89eb9a977641
diff -r cc6e65480a67 -r f2a413d5dffd bt.cpp --- a/bt.cpp Wed Sep 20 11:02:08 2017 +0000 +++ b/bt.cpp Wed Sep 27 09:36:26 2017 +0000 @@ -33,7 +33,7 @@ static uint32_t counter=0; static uint32_t v1[NO_OF_SAMPLES]; uint8_t file=0; - +static uint32_t bt_pid = 0; uint8_t bt_send(uint8_t state_tx) { @@ -54,12 +54,13 @@ file_start=0; count_send=0; total_samples=0; file_pointer_position=0; + bt_pid = get_btpid()+1; //added on 22/09/2017 nikita mc.printf("bt_pid = %d\n",get_btpid()); - if(get_filepid()>get_btpid()) //check for pid and bluetooth pid by reading from file + if(get_filepid()>bt_pid) //check for pid and bluetooth pid by reading from file { send_initial_string(); blue.printf("\n"); - file=sd_open_read(get_btpid()); // open the file for reading + file=sd_open_read(bt_pid); // open the file for reading total_file_size=file_size(); // determined the file size state_rx = 1; }