From 31daa9db97a0d0e094c20ac8f3891d3633610039 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 27 May 2022 13:51:18 +0200 Subject: send start byte on robot side too --- robot/sercomm.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3