My final year project

Dependencies:   BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter

Revision:
22:dd9ff475b34c
Parent:
20:70c5b1e499f0
Child:
23:bab197887d5e
--- a/Screens/AutomaticControlScreen.cpp	Sun Oct 02 21:22:04 2016 +0000
+++ b/Screens/AutomaticControlScreen.cpp	Mon Oct 03 00:31:36 2016 +0200
@@ -65,17 +65,14 @@
   {
     if( !*_ballOnPlate )
       _btStart.Inactivate();
-    else
+    else if( _btStart.Touched() )
     {
-      if( _btStart.Touched() )
-      {
-        _btStart.Inactivate();
-        _btStart.Erase();
-        _btStop.Activate();
-        _btStop.Draw(0xFFFF0000);
-        Thread::wait(200);
-        *_started = true;
-      }
+      _btStart.Inactivate();
+      _btStart.Erase();
+      _btStop.Activate();
+      _btStop.Draw(0xFFFF0000);
+      Thread::wait(200);
+      *_started = true;
     }
   }
   else if( _btStop.IsActive() )