main.cpp: Sensoren einlesen und Motoren ansteuern

Dependencies:   mbed

Revision:
3:c0f40a94fffa
Parent:
2:4ccdc62022c2
Child:
4:e74c06e43485
--- a/main.cpp	Tue Apr 10 14:26:08 2018 +0000
+++ b/main.cpp	Tue Apr 10 14:31:50 2018 +0000
@@ -49,8 +49,8 @@
     short countsLeft = 0;
     short countsRight = 0;
     
-    if (button.read() || start != 1) start = 1;
-    else if(button.read() || start == 1) start = 0;
+    if (button.read() && start != 1) start = 1;
+    else if(button.read() && start == 1) start = 0;
 
 
     /*