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:
68:b769c0f23406
Parent:
65:b277b4067d4a
Child:
69:6138d4e0410e
--- a/LCDController.cpp	Mon Jun 20 10:57:32 2016 +0000
+++ b/LCDController.cpp	Mon Jun 20 12:48:42 2016 +0000
@@ -56,9 +56,13 @@
     lcd.printf("Now pumping...");
 }
 
-void LCDController::updateScreen(float distance) {
+void LCDController::updateScreen(float volume) {
     lcd.cls();
-    lcd.printf("Volume:\n%.0fml", distance);    
+    
+    if(volume == -1.0f)
+        lcd.printf("Volume:\nNC");
+    else
+        lcd.printf("Volume:\n%.0fml", volume);    
 }
 
 void LCDController::showError(const char *msg) {