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:
- 3:e43babb84ff3
- Parent:
- 2:6e6157daf08b
--- a/main.cpp Wed Sep 05 20:31:54 2018 +0000
+++ b/main.cpp Sun Sep 09 01:02:43 2018 +0000
@@ -20,6 +20,8 @@
read_cc=read_command();
switch (read_cc) {
case 0x01: moving(); break;
+ case 0x02: moving(); break;
+ case 0x03: moving(); break;
default: debug_m("error de comando. \n");break ;
}
}
@@ -35,7 +37,7 @@
char intc=command.getc();
- while(intc != '<')
+ while(intc != '<' )
intc=command.getc();
return command.getc();
}
@@ -52,7 +54,7 @@
char nmotor=command.getc();
char grados=command.getc();
- debug_m("SE MOEVE EL MOTOR %d, EN %d GRADOS ..\n", nmotor,grados );
+ debug_m("SE MUEVE EL MOTOR %d, EN %d GRADOS ..\n", nmotor,grados );
char endc=command.getc();
mover_ser(nmotor,grados);
