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

Revision:
72:f8c4f731f0fe
Parent:
69:6138d4e0410e
Child:
78:a44ad011dd41
--- a/LCDController.cpp	Tue Jun 21 12:09:12 2016 +0000
+++ b/LCDController.cpp	Tue Jun 21 13:48:28 2016 +0000
@@ -61,8 +61,12 @@
     
     if(-1.0f == volume)
         lcd.printf("Volume:\nNC");
+    else if(volume > VOLUME_MAX_CRIT)
+        lcd.printf("Volume:\nOverflow");
+    else if(volume < VOLUME_MIN_CRIT)
+        lcd.printf("Volume:\nUnderflow");
     else
-        lcd.printf("Volume:\n%.0fml", volume);    
+        lcd.printf("Volume:\nOK");
 }
 
 void LCDController::showError(const char *msg) {