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: LCDController.cpp
- Revision:
- 24:eeef4009640d
- Parent:
- 18:da84737ee427
--- a/LCDController.cpp Mon Jun 13 12:57:14 2016 +0000 +++ b/LCDController.cpp Mon Jun 13 13:41:25 2016 +0000 @@ -23,12 +23,14 @@ lcd.cls(); char tempbuffer[16]; - + bool is_heating = false; if (displaytemp > 100) { sprintf(tempbuffer, "Temp: NC"); } else { - sprintf(tempbuffer,"Temp: %.1fC",displaytemp); + if (is_heating)sprintf(tempbuffer,"Temp: %.1fC+",displaytemp); + if (!is_heating)sprintf(tempbuffer,"Temp: %.1fC",displaytemp); + } lcd.printf("%s\nSalt: %.3fPPT",tempbuffer,saltvolt);