diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-23 12:56:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-23 12:56:21 +0200 |
commit | 2c94e4478558551dbebdc8fa8682661fa60a1c75 (patch) | |
tree | 12102d584b1e511f65aa0f39c1ea8c4f85aac16c /robot/sim.c | |
parent | 22f92030b316f98c5f8d3a54d0a937ab12fe148e (diff) |
fix segfault
Diffstat (limited to 'robot/sim.c')
-rw-r--r-- | robot/sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/robot/sim.c b/robot/sim.c index 6bd5838..1e88feb 100644 --- a/robot/sim.c +++ b/robot/sim.c @@ -55,7 +55,7 @@ void serial_send(char* message, unsigned int length) { printf("\n"); simprintf(""); } - printf("%02x ", message[byte]); + printf("%02x ", message[byte] & 0xff); bytes++; } printf("\n"); |