limit switch example

Dependencies:   mbed

Revision:
1:fe798c459fdb
Parent:
0:bd903e56077a
Child:
2:fd4ab491b054
diff -r bd903e56077a -r fe798c459fdb main.cpp
--- a/main.cpp	Tue Jul 17 00:15:18 2018 +0000
+++ b/main.cpp	Tue Jul 17 00:29:53 2018 +0000
@@ -18,8 +18,7 @@
 
 void stop()
 {   wait(0.01);
-    if(button.read() == 1)
-    {
+    if(button.read() == 1){
     mypwm.write(0); 
     }  
 }