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:60722da62531
- Parent:
- 2:10956b8ceffb
- Child:
- 4:ba51736778e1
--- a/main.cpp Thu Sep 06 18:05:07 2018 +0000
+++ b/main.cpp Fri Sep 07 03:42:26 2018 +0000
@@ -2,7 +2,7 @@
#include "main.h"
-#define MEM_SIZE 10
+#define MEM_SIZE 5
#define MEM_TYPE char
MEM_TYPE buffer[MEM_SIZE];
@@ -27,7 +27,6 @@
case 0x01:
debug_m("Tc1\n");
-
moving();
debug_m("FTc1\n");
break;
@@ -46,7 +45,8 @@
uint32_t read_command()
{
// retorna los byte recibidos concatenados en un entero,
-
+ // Formato | FF | TC | NM | GR | FD
+ // Datos | Inicio | Tele-comando | Numero Motor | Grados | Cierre
//char intc=command.getc();
buffer[0] = command.getc();
buffer[1] = command.getc();
@@ -65,7 +65,7 @@
printf("encontrado: %c \n", buffer[0] );
//intc=command.getc();
int tele = buffer[1];
- printf("dato siguente: %c \n", tele );
+ printf("Tele siguente: %c \n", tele );
return tele;
