summaryrefslogtreecommitdiff
path: root/robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot')
-rw-r--r--robot/sercomm.c2
-rw-r--r--robot/setup.c24
2 files changed, 13 insertions, 13 deletions
diff --git a/robot/sercomm.c b/robot/sercomm.c
index e845b1a..9c67aab 100644
--- a/robot/sercomm.c
+++ b/robot/sercomm.c
@@ -22,7 +22,7 @@ void w2_sercomm_main() {
simprint("line 1");
simprintf("bytes: %i\n", data->bytes);
- char* data_cast = malloc(data->bytes);
+ char *data_cast = malloc(data->bytes);
simprint("line 2");
memcpy(data_cast, data->data, data->bytes);
simprint("line 3");
diff --git a/robot/setup.c b/robot/setup.c
index 59a6404..fcac6d4 100644
--- a/robot/setup.c
+++ b/robot/setup.c
@@ -29,19 +29,19 @@ void w2_setup_main() {
play("L50 c>c");
#ifdef W2_SIM
- #include "sercomm.h"
+#include "sercomm.h"
w2_s_bin *data = malloc(sizeof(w2_s_bin) + sizeof(uint8_t) * 20);
- data->bytes = 20;
- data->data[0] = 0x00;
- data->data[1] = 0x01;
- data->data[2] = 0x00;
- data->data[3] = 0x01;
- data->data[4] = 0x00;
- data->data[5] = 0x01;
- data->data[6] = 0x00;
- data->data[7] = 0x01;
- data->data[8] = 0xde;
- data->data[9] = 0xad;
+ data->bytes = 20;
+ data->data[0] = 0x00;
+ data->data[1] = 0x01;
+ data->data[2] = 0x00;
+ data->data[3] = 0x01;
+ data->data[4] = 0x00;
+ data->data[5] = 0x01;
+ data->data[6] = 0x00;
+ data->data[7] = 0x01;
+ data->data[8] = 0xde;
+ data->data[9] = 0xad;
data->data[10] = 0xbe;
data->data[11] = 0xef;
data->data[12] = 0xff;