Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 01-04EntregaPrimerCorte by
Diff: main.cpp
- Revision:
- 2:6e6157daf08b
- Parent:
- 1:526bdd5faa37
- Child:
- 3:e43babb84ff3
--- a/main.cpp Tue Sep 04 02:15:49 2018 +0000
+++ b/main.cpp Wed Sep 05 20:31:54 2018 +0000
@@ -20,7 +20,7 @@
read_cc=read_command();
switch (read_cc) {
case 0x01: moving(); break;
- default: debug_m("error de comando. \nSe espera 0xFEF0 o 0xFFF0 \n");break ;
+ default: debug_m("error de comando. \n");break ;
}
}
}
@@ -37,7 +37,7 @@
while(intc != '<')
intc=command.getc();
- return intc;
+ return command.getc();
}
@@ -52,9 +52,11 @@
char nmotor=command.getc();
char grados=command.getc();
+ debug_m("SE MOEVE EL MOTOR %d, EN %d GRADOS ..\n", nmotor,grados );
char endc=command.getc();
mover_ser(nmotor,grados);
- debug_m("fin del comado guardar..\n");
+
+ debug_m("fin del comado MOVER ..\n");
}
