diff options
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(""); |