proyecto araña

Dependencies:   mbed

Fork of 01-04EntregaPrimerCorte by ferney alberto beltran molina

Revision:
2:dc3183a4bdf4
Parent:
1:526bdd5faa37
--- a/main.cpp	Tue Sep 04 02:15:49 2018 +0000
+++ b/main.cpp	Sun Sep 30 21:17:00 2018 +0000
@@ -35,9 +35,9 @@
     
     char intc=command.getc();
     
-    while(intc != '<')
+    while(intc != 0xff)
         intc=command.getc();
-    return intc;
+    return command.getc();
 }
 
 
@@ -53,8 +53,10 @@
     char nmotor=command.getc();
     char grados=command.getc();
     char endc=command.getc();
-    mover_ser(nmotor,grados); 
-    debug_m("fin del comado guardar..\n");    
+    debug_m("MOTOR: %d grados : %d \n", nmotor, grados);    
+  
+   mover_ser(nmotor,grados); 
+    debug_m("fin del comado mover..\n");    
     
 }