Rachel Ireland-Jones / Mbed OS FinalYear0
Revision:
11:475b412bbc3c
Parent:
10:1637fce7ef1e
Child:
12:3abb17739c2e
--- a/main.cpp	Tue Nov 19 15:09:24 2019 +0000
+++ b/main.cpp	Tue Nov 19 15:15:50 2019 +0000
@@ -209,12 +209,10 @@
                PWMB.write(0.0f);
                time();
             }  
-       
-        PWMA.write(0.0f);    
-        PWMB.write(0.0f);
         timer.stop();   
         break;
     }
-    wait(500);
+    PWMA.write(0.0f);    
+    PWMB.write(0.0f);
 }
  
\ No newline at end of file