Program for the water play project for the course Software Testing Practical 2016 given at the VU University
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: AlarmController.cpp
- Revision:
- 24:eeef4009640d
- Parent:
- 20:521f795ea9d7
--- a/AlarmController.cpp Mon Jun 13 12:57:14 2016 +0000 +++ b/AlarmController.cpp Mon Jun 13 13:41:25 2016 +0000 @@ -68,7 +68,7 @@ if (readtimer > 0 ) { //already running if ((readtimer >= 30 && tempiscrit) || (readtimer >= 300 && !tempiscrit)) { - //DO STUFF!! + this->error = true; printf("### Temperature alarm has been triggered after %d ###\r\n",readtimer); buzzOnce(); temptimer.stop(); @@ -89,7 +89,7 @@ if (readtimer > 0 ) { //already running if ((readtimer >= 30 && saltiscrit) || (readtimer >= 300 && !saltiscrit)) { - //DO STUFF!! + this->error = true; printf("### Salt alarm has been triggered after %d seconds ###\r\n",readtimer); buzzOnce(); salttimer.stop();