aboutsummaryrefslogtreecommitdiff
path: root/robot/sercomm.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-27 13:51:18 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-27 13:51:18 +0200
commit31daa9db97a0d0e094c20ac8f3891d3633610039 (patch)
tree95727736d61d6d3b1a935a1d62fe5a03052e16f5 /robot/sercomm.c
parentdef257fcd9769d3572dbf5bdd076e4ce470fc8ec (diff)
send start byte on robot side too
Diffstat (limited to 'robot/sercomm.c')
-rw-r--r--robot/sercomm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/robot/sercomm.c b/robot/sercomm.c
index e0ea39d..608cb04 100644
--- a/robot/sercomm.c
+++ b/robot/sercomm.c
@@ -37,6 +37,7 @@ void w2_sercomm_main() {
#ifdef W2_SIM
w2_sim_print_serial(data);
#endif
+ serial_send("\xff", 1);
for (uint8_t i = 0; i < data->bytes; i++) {
uint8_t byte = data->data[i];
byte == 0xff ? serial_send("\xff\xff", 2) : serial_send((char *)&byte, 1);