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: main.cpp
- Revision:
- 50:b42238e7f46d
- Parent:
- 49:3ff80c4bc1be
- Child:
- 51:1a4693774b60
diff -r 3ff80c4bc1be -r b42238e7f46d main.cpp --- a/main.cpp Fri Sep 15 19:44:48 2017 +0000 +++ b/main.cpp Sat Sep 16 06:54:42 2017 +0000 @@ -63,12 +63,15 @@ while(timer_bt.read_ms()<TIMER_ENTER_DEBUG_MODE) { - if (gc.readable()) + if (gc.readable()) // checking whether there is any data read { - debug_mode = 1; - timer_bt.stop(); - timer_bt.reset(); - break; + gc.getc(); + //getchar(); + debug_mode = 1; + timer_bt.stop(); + timer_bt.reset(); + gc.printf("entered debug mode\n"); + break; } } @@ -316,7 +319,7 @@ static uint8_t ecg_flag=0; // ecg_flag to indicate the ecg test is already done for the same pid static uint8_t glc_flag=0; // glc_flag to indicate the glc test is already done for the same pid uint16_t heart_rate=0; - uint32_t pid_read = 0; + switch(state1) // state for display screens { @@ -503,10 +506,10 @@ case 15 : DisableTouch(); // screen_sdcard_read(); //state to delete SD card - gc.printf("Enter the PID number......!!"); - gc.scanf("%d\n", &pid_read); - gc.printf("%d\n",pid_read); - read_sdcard_file(pid_read); + gc.printf("Enter the PID number"); + /// gc.scanf("%d", &pid_read); + // gc.printf("%d\n",pid_read); + read_sdcard_file(); // screen_sdcard_read(); state1=0; state= 12;