Pilot 1 working code (excluding new patient after calculation). %d changed in %f sensordata serial log.
Dependencies: ADS1015 MPU6050 PixelArray mbed
Fork of Momo_New by
Diff: Sensorplate/main.cpp
- Revision:
- 23:4a09554bdc1a
- Parent:
- 22:a09775c25890
- Child:
- 24:782c4dc4a3ff
--- a/Sensorplate/main.cpp Mon Oct 02 16:05:46 2017 +0000 +++ b/Sensorplate/main.cpp Mon Oct 02 16:10:14 2017 +0000 @@ -362,7 +362,7 @@ } } - if ((calibration_hold_timer.read_ms() > calibrationtime_ms) && calibration_flag == 0 && new_patient == 0) { // If statement for calibration system. + if ((calibration_hold_timer.read_ms() > calibrationtime_ms) && calibration_flag == 0 && new_patient == 0 && lock_state == 0) { // If statement for calibration system. calibration_flag = 1; calibration_flash = 11; pc.printf("Calibrate triggered.\n");