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:
16:b9c4fd837909
Parent:
10:fd4670ec0806
--- a/LCDController.cpp	Sat Jun 11 10:14:40 2016 +0000
+++ b/LCDController.cpp	Mon Jun 13 09:17:50 2016 +0000
@@ -21,7 +21,18 @@
 void LCDController::updateScreen(float displaytemp, float saltvolt)
 {
      lcd.cls();
-     lcd.printf("Temp: %.1fC\nSalt: %.3fPPT",displaytemp,saltvolt);   
+     
+     char tempbuffer[16];
+     
+     if (displaytemp > 100)
+     {
+         sprintf (tempbuffer, "Temp: NC");
+     } else {
+         sprintf (tempbuffer, "Temp: %.1fC",displaytemp);
+     }
+         
+         
+     lcd.printf("%s\nSalt: %.3fPPT",tmepbuffer,saltvolt);   
 }
 
 void LCDController::updateScreen(float distance) {