diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-27 13:51:18 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-27 13:51:18 +0200 |
commit | 31daa9db97a0d0e094c20ac8f3891d3633610039 (patch) | |
tree | 95727736d61d6d3b1a935a1d62fe5a03052e16f5 | |
parent | def257fcd9769d3572dbf5bdd076e4ce470fc8ec (diff) |
send start byte on robot side too
-rw-r--r-- | robot/sercomm.c | 1 |
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); |