practica 2 ejercicio 9

Dependencies:   mbed-rtos mbed

Revision:
1:bfed5e20331a
Parent:
0:f2a8b489600e
--- a/main.cpp	Thu Nov 09 14:03:51 2017 +0000
+++ b/main.cpp	Thu Nov 09 15:07:51 2017 +0000
@@ -21,9 +21,8 @@
     while (true) {
         if (estado&&(!Sw)) {
             thread.signal_set(0x1);
-            //thread.start(thread_led1);
         }
-        Led=Sw;
+        estado=Sw;
         Thread::wait(200);
     }
 }
\ No newline at end of file