Gustavo Vargas Melo / Mbed 2 deprecated BotonFinal

Dependencies:   mbed FXOS8700Q

Revision:
3:32058377a827
Parent:
2:7b09af16aee4
Child:
4:87dc862ec3aa
--- a/main.cpp	Mon Apr 13 23:27:06 2020 +0000
+++ b/main.cpp	Mon Apr 13 23:34:58 2020 +0000
@@ -7,7 +7,7 @@
   
  void bot(int b) 
  {
-     if(enable == 1)
+     if(enable.read() == 1)
      {
         com1.printf("El boton esta siendo presionado");