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: SensorAlarmController.cpp
- Revision:
- 67:851db0511c7c
- Parent:
- 64:735009c4c8aa
- Child:
- 72:f8c4f731f0fe
diff -r 133398875949 -r 851db0511c7c SensorAlarmController.cpp --- a/SensorAlarmController.cpp Mon Jun 20 10:53:46 2016 +0000 +++ b/SensorAlarmController.cpp Mon Jun 20 10:57:32 2016 +0000 @@ -29,6 +29,7 @@ //clear alarm timer.stop(); this->is_crit = false; + sensor->setLed(false); } } @@ -55,6 +56,7 @@ } cout << "### " << this->getName() << " alarm has been triggered after " << " ###" << readtimer << "\r\n"; + sensor->setLed(true); buzzOnce(); timer.stop(); timer.reset();