diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:30:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:30:21 +0200 |
commit | 9cd83d662849fe72c83038a018107d9bbf5c2398 (patch) | |
tree | aeae2f79b63f09eebbb72e56bee0facbad34fb1d /robot/sim.c | |
parent | 4f0718caefa7f7a1baf02997fec0b448d0d6615a (diff) |
WIP serial parsing
Diffstat (limited to 'robot/sim.c')
-rw-r--r-- | robot/sim.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/robot/sim.c b/robot/sim.c index b061c9a..8af672e 100644 --- a/robot/sim.c +++ b/robot/sim.c @@ -52,6 +52,12 @@ void serial_set_baud_rate(unsigned int rate) { } void serial_send(char* message, unsigned int length) { + if (g_w2_sim_headless) { + for (unsigned int byte = 0; byte < length; byte++) + putc(message[byte] & 0xff, stdout); + return; + } + if (!DBG_ENABLE_PRINTFUNC) return; simprintfunc("serial_send", "<see below>, %u", length); unsigned int bytes = 0; simprintf(""); |