summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-31 10:09:55 +0200
committerxengineering <me@xengineering.eu>2024-05-31 10:09:55 +0200
commitbb029aacf08983ad6c1a6360d988e89394fc4d85 (patch)
tree452c3b655bb5875b08163d94e8f01f7f2edc0cfe /firmware
parenta3cbf0dd580a5bc51c4cfccbdf69be5fff23303a (diff)
downloadiot-core-bb029aacf08983ad6c1a6360d988e89394fc4d85.tar
iot-core-bb029aacf08983ad6c1a6360d988e89394fc4d85.tar.zst
iot-core-bb029aacf08983ad6c1a6360d988e89394fc4d85.zip
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.
Diffstat (limited to 'firmware')
-rw-r--r--firmware/src/main.c2
1 files changed, 1 insertions, 1 deletions
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));