From bb029aacf08983ad6c1a6360d988e89394fc4d85 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 31 May 2024 10:09:55 +0200 Subject: firmware: Add end and escape byte to UART output These special bytes of the Serial Line Internet Protocol are contained inside the payload to validate that the escaping is working correctly. --- firmware/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/main.c b/firmware/src/main.c index c8cddb2..dedd603 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -41,7 +41,7 @@ int main(void) return 0; } - uint8_t frame[] = {0xDE, 0xAD}; + uint8_t frame[] = {0xDE, SLIP_END, SLIP_ESC, 0xAD}; while (true) { k_sleep(K_MSEC(1000)); -- cgit v1.2.3-70-g09d2